[cfe-commits] r84101 - /cfe/trunk/lib/Sema/SemaExceptionSpec.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Wed Oct 14 08:06:26 PDT 2009


Author: cornedbee
Date: Wed Oct 14 10:06:25 2009
New Revision: 84101

URL: http://llvm.org/viewvc/llvm-project?rev=84101&view=rev
Log:
Use CanQualType in the exception specification verification type sets.

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

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

==============================================================================
--- cfe/trunk/lib/Sema/SemaExceptionSpec.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExceptionSpec.cpp Wed Oct 14 10:06:25 2009
@@ -117,14 +117,14 @@
   bool Success = true;
   // Both have a definite exception spec. Collect the first set, then compare
   // to the second.
-  llvm::SmallPtrSet<const Type*, 8> OldTypes, NewTypes;
+  llvm::SmallPtrSet<CanQualType, 8> OldTypes, NewTypes;
   for (FunctionProtoType::exception_iterator I = Old->exception_begin(),
        E = Old->exception_end(); I != E; ++I)
-    OldTypes.insert(Context.getCanonicalType(*I).getTypePtr());
+    OldTypes.insert(Context.getCanonicalType(*I).getUnqualifiedType());
 
   for (FunctionProtoType::exception_iterator I = New->exception_begin(),
        E = New->exception_end(); I != E && Success; ++I) {
-    const Type *TypePtr = Context.getCanonicalType(*I).getTypePtr();
+    CanQualType TypePtr = Context.getCanonicalType(*I).getUnqualifiedType();
     if(OldTypes.count(TypePtr))
       NewTypes.insert(TypePtr);
     else





More information about the cfe-commits mailing list