@@ -14221,16 +14221,14 @@ static QualType getCommonNonSugarTypeNode(ASTContext &Ctx, const Type *X,
14221
14221
TX->getDepth(), TX->getIndex(), TX->isParameterPack(),
14222
14222
getCommonDecl(TX->getDecl(), TY->getDecl()));
14223
14223
}
14224
- // case Type::DependentPointer: {
14225
- // const auto *PX = cast<DependentPointerType>(X),
14226
- // *PY = cast<DependentPointerType>(Y);
14227
- // assert(PX->getPointerInterpretation() == PY->getPointerInterpretation());
14228
- // return Ctx.getDependentPointerType(
14229
- // getCommonPointeeType(Ctx, PX, PY),
14230
- // PX->getPointerInterpretation(),
14231
- // PX->getQualifierLoc()
14232
- // );
14233
- // }
14224
+ case Type::DependentPointer: {
14225
+ const auto *PX = cast<DependentPointerType>(X),
14226
+ *PY = cast<DependentPointerType>(Y);
14227
+ assert(PX->getPointerInterpretation() == PY->getPointerInterpretation());
14228
+ return Ctx.getDependentPointerType(getCommonPointeeType(Ctx, PX, PY),
14229
+ PX->getPointerInterpretation(),
14230
+ PX->getQualifierLoc());
14231
+ }
14234
14232
}
14235
14233
llvm_unreachable("Unknown Type Class");
14236
14234
}
0 commit comments