[cfe-commits] r83464 - /cfe/trunk/lib/Sema/SemaOverload.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Oct 7 09:56:50 PDT 2009


Author: fjahanian
Date: Wed Oct  7 11:56:50 2009
New Revision: 83464

URL: http://llvm.org/viewvc/llvm-project?rev=83464&view=rev
Log:
Removed couple of unnecessary canonicalization
per Doug's obsevation.


Modified:
    cfe/trunk/lib/Sema/SemaOverload.cpp

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=83464&r1=83463&r2=83464&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Wed Oct  7 11:56:50 2009
@@ -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 };





More information about the cfe-commits mailing list