aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/CXXInheritance.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2025-08-27 06:20:14 -0300
committerGitHub <noreply@github.com>2025-08-27 06:20:14 -0300
commit88438ba1f37fa4e0c2db203cd5556e52c9c34c08 (patch)
tree7fb96d5778f8b5f6c6bc258182c1f743a2f0d5da /clang/lib/AST/CXXInheritance.cpp
parentf6d2fcc7a64250d3a6fe2365f0b2d600f0ece887 (diff)
downloadllvm-88438ba1f37fa4e0c2db203cd5556e52c9c34c08.zip
llvm-88438ba1f37fa4e0c2db203cd5556e52c9c34c08.tar.gz
llvm-88438ba1f37fa4e0c2db203cd5556e52c9c34c08.tar.bz2
[clang] AST: fix getAs canonicalization of leaf types (#155028)
Diffstat (limited to 'clang/lib/AST/CXXInheritance.cpp')
-rw-r--r--clang/lib/AST/CXXInheritance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/CXXInheritance.cpp b/clang/lib/AST/CXXInheritance.cpp
index 94f01c8..7a3e7ea 100644
--- a/clang/lib/AST/CXXInheritance.cpp
+++ b/clang/lib/AST/CXXInheritance.cpp
@@ -190,7 +190,7 @@ bool CXXBasePaths::lookupInBases(ASTContext &Context,
if (isDetectingVirtual() && DetectedVirtual == nullptr) {
// If this is the first virtual we find, remember it. If it turns out
// there is no base path here, we'll reset it later.
- DetectedVirtual = BaseType->getAs<RecordType>();
+ DetectedVirtual = BaseType->getAsCanonical<RecordType>();
SetVirtual = true;
}
} else {