summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-21 20:29:55 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-21 20:29:55 +0000
commit27ac429624675306626af028f50cc3bfe172fe7e (patch)
tree64f609dbd4cc89b8973856c6f632fb80edbd5c2f /clang/lib/Sema/SemaExceptionSpec.cpp
parentc425fe4c8014c1f0c921d94ba03d8e137b42a3fa (diff)
downloadbcm5719-llvm-27ac429624675306626af028f50cc3bfe172fe7e.tar.gz
bcm5719-llvm-27ac429624675306626af028f50cc3bfe172fe7e.zip
Use CanQualType to enforce the use of a canonical type argument to
CXXBasePaths::isAmbiguous(), rather than just asserting that we have a canonical type. Fixes PR7176. llvm-svn: 104374
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r--clang/lib/Sema/SemaExceptionSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp
index 53e9385749f..7d73fe4777b 100644
--- a/clang/lib/Sema/SemaExceptionSpec.cpp
+++ b/clang/lib/Sema/SemaExceptionSpec.cpp
@@ -389,7 +389,7 @@ bool Sema::CheckExceptionSpecSubset(
if (!IsDerivedFrom(CanonicalSubT, CanonicalSuperT, Paths))
continue;
- if (Paths.isAmbiguous(CanonicalSuperT))
+ if (Paths.isAmbiguous(Context.getCanonicalType(CanonicalSuperT)))
continue;
// Do this check from a context without privileges.
OpenPOWER on IntegriCloud