diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2025-08-27 06:20:14 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-27 06:20:14 -0300 |
commit | 88438ba1f37fa4e0c2db203cd5556e52c9c34c08 (patch) | |
tree | 7fb96d5778f8b5f6c6bc258182c1f743a2f0d5da /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | f6d2fcc7a64250d3a6fe2365f0b2d600f0ece887 (diff) | |
download | llvm-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/ByteCode/Compiler.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Compiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp index 0079d93..6e64fc0 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -4609,8 +4609,8 @@ UnsignedOrNone Compiler<Emitter>::allocateTemporary(const Expr *E) { template <class Emitter> const RecordType *Compiler<Emitter>::getRecordTy(QualType Ty) { if (const PointerType *PT = dyn_cast<PointerType>(Ty)) - return PT->getPointeeType()->getAs<RecordType>(); - return Ty->getAs<RecordType>(); + return PT->getPointeeType()->getAsCanonical<RecordType>(); + return Ty->getAsCanonical<RecordType>(); } template <class Emitter> Record *Compiler<Emitter>::getRecord(QualType Ty) { |