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 | 467b27b9a24bdc823218ad1ad0e37673b6cc1e83 (patch) | |
tree | ca441268821057214516f8670fb994bbc6cab508 /lib/AST/CXXInheritance.cpp | |
parent | e78ec3149097df4335d9bd6a92f9c2f5f27bac2f (diff) |
Canonicality is a property of qualified types, not unqualified types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CXXInheritance.cpp')
-rw-r--r-- | lib/AST/CXXInheritance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/CXXInheritance.cpp b/lib/AST/CXXInheritance.cpp index 4a46eab2e6..b59b45f646 100644 --- a/lib/AST/CXXInheritance.cpp +++ b/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; |