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/Pointer.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/Pointer.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Pointer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp index c3c6722..9fc5b51 100644 --- a/clang/lib/AST/ByteCode/Pointer.cpp +++ b/clang/lib/AST/ByteCode/Pointer.cpp @@ -700,7 +700,7 @@ std::optional<APValue> Pointer::toRValue(const Context &Ctx, return true; } - if (const auto *RT = Ty->getAs<RecordType>()) { + if (const auto *RT = Ty->getAsCanonical<RecordType>()) { const auto *Record = Ptr.getRecord(); assert(Record && "Missing record descriptor"); |