Removed couple of unnecessary canonicalization
per Doug's obsevation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83464 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp
index 7a8c6c0..d637ed5 100644
--- a/lib/Sema/SemaOverload.cpp
+++ b/lib/Sema/SemaOverload.cpp
@@ -3693,7 +3693,7 @@
QualType C1;
if (const PointerType *PointerTy = C1Ty->getAs<PointerType>()) {
C1 = PointerTy->getPointeeType();
- C1 = Context.getCanonicalType(C1).getUnqualifiedType();
+ C1 = C1.getUnqualifiedType();
if (!isa<RecordType>(C1))
continue;
}
@@ -3703,7 +3703,7 @@
MemPtr != MemPtrEnd; ++MemPtr) {
const MemberPointerType *mptr = cast<MemberPointerType>(*MemPtr);
QualType C2 = QualType(mptr->getClass(), 0);
- C2 = Context.getCanonicalType(C2).getUnqualifiedType();
+ C2 = C2.getUnqualifiedType();
if (C1 != C2 && !IsDerivedFrom(C1, C2))
break;
QualType ParamTypes[2] = { *Ptr, *MemPtr };