diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index b3e1689065732..56447b56e8db1 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -14221,16 +14221,14 @@ static QualType getCommonNonSugarTypeNode(ASTContext &Ctx, const Type *X, TX->getDepth(), TX->getIndex(), TX->isParameterPack(), getCommonDecl(TX->getDecl(), TY->getDecl())); } - // case Type::DependentPointer: { - // const auto *PX = cast(X), - // *PY = cast(Y); - // assert(PX->getPointerInterpretation() == PY->getPointerInterpretation()); - // return Ctx.getDependentPointerType( - // getCommonPointeeType(Ctx, PX, PY), - // PX->getPointerInterpretation(), - // PX->getQualifierLoc() - // ); - // } + case Type::DependentPointer: { + const auto *PX = cast(X), + *PY = cast(Y); + assert(PX->getPointerInterpretation() == PY->getPointerInterpretation()); + return Ctx.getDependentPointerType(getCommonPointeeType(Ctx, PX, PY), + PX->getPointerInterpretation(), + PX->getQualifierLoc()); + } } llvm_unreachable("Unknown Type Class"); }