diff options
author | John McCall <rjmccall@apple.com> | 2009-10-22 20:10:53 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-10-22 20:10:53 +0000 |
commit | b692a098c6ae6f28102249ed516915fa28e29136 (patch) | |
tree | 3cb2621c0b5274322a2e143cb8ea987c7bb6cd6e /clang/lib/AST/CXXInheritance.cpp | |
parent | 6b80e6e2b7793005ded19a9eb81b95fdb0f7bb79 (diff) | |
download | bcm5719-llvm-b692a098c6ae6f28102249ed516915fa28e29136.tar.gz bcm5719-llvm-b692a098c6ae6f28102249ed516915fa28e29136.zip |
Canonicality is a property of qualified types, not unqualified types.
llvm-svn: 84891
Diffstat (limited to 'clang/lib/AST/CXXInheritance.cpp')
-rw-r--r-- | clang/lib/AST/CXXInheritance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/CXXInheritance.cpp b/clang/lib/AST/CXXInheritance.cpp index 4a46eab2e60..b59b45f6467 100644 --- a/clang/lib/AST/CXXInheritance.cpp +++ b/clang/lib/AST/CXXInheritance.cpp @@ -50,7 +50,7 @@ CXXBasePaths::decl_iterator CXXBasePaths::found_decls_end() { /// different base class subobjects of the same type. BaseType must be /// an unqualified, canonical class type. bool CXXBasePaths::isAmbiguous(QualType BaseType) { - assert(BaseType->isCanonical() && "Base type must be the canonical type"); + assert(BaseType.isCanonical() && "Base type must be the canonical type"); assert(BaseType.hasQualifiers() == 0 && "Base type must be unqualified"); std::pair<bool, unsigned>& Subobjects = ClassSubobjects[BaseType]; return Subobjects.second + (Subobjects.first? 1 : 0) > 1; |