summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-10-14 15:06:25 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-10-14 15:06:25 +0000
commit184edcadbd618e4fd6224c9bceff3e3aeb6346cc (patch)
tree63ac2e9a6972db1e013c435b8629169554ce60f1 /clang/lib/Sema/SemaExceptionSpec.cpp
parenta3d4f16b12e29ae5210eb77bb80a617a889a4038 (diff)
downloadbcm5719-llvm-184edcadbd618e4fd6224c9bceff3e3aeb6346cc.tar.gz
bcm5719-llvm-184edcadbd618e4fd6224c9bceff3e3aeb6346cc.zip
Use CanQualType in the exception specification verification type sets.
llvm-svn: 84101
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r--clang/lib/Sema/SemaExceptionSpec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp
index 12d06b4905b..0adeb99d0c0 100644
--- a/clang/lib/Sema/SemaExceptionSpec.cpp
+++ b/clang/lib/Sema/SemaExceptionSpec.cpp
@@ -117,14 +117,14 @@ bool Sema::CheckEquivalentExceptionSpec(
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
OpenPOWER on IntegriCloud