diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-04-11 10:35:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-11 10:35:28 +0200 |
commit | fafeaab6d91334e9c251aa222cbca1eb94536bf2 (patch) | |
tree | 70e0dbea594a62fbfc6abe62f1e4d04ee1cdfceb /clang/lib/AST/ByteCode/Pointer.cpp | |
parent | 0276915a6c888906b2140a3d97e5ce32057a3ca5 (diff) | |
download | llvm-fafeaab6d91334e9c251aa222cbca1eb94536bf2.zip llvm-fafeaab6d91334e9c251aa222cbca1eb94536bf2.tar.gz llvm-fafeaab6d91334e9c251aa222cbca1eb94536bf2.tar.bz2 |
[clang][bytecode] Misc TypeidPointer fixes (#135322)
Fix comparing type id pointers, add mor info when print()ing them, use
the most derived type in GetTypeidPtr() and the canonically unqualified
type when we know the type statically.
Diffstat (limited to 'clang/lib/AST/ByteCode/Pointer.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Pointer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp index 918a434..c09d322 100644 --- a/clang/lib/AST/ByteCode/Pointer.cpp +++ b/clang/lib/AST/ByteCode/Pointer.cpp @@ -342,7 +342,9 @@ void Pointer::print(llvm::raw_ostream &OS) const { << " }"; break; case Storage::Typeid: - OS << "(Typeid)"; + OS << "(Typeid) { " << (const void *)asTypeidPointer().TypePtr << ", " + << (const void *)asTypeidPointer().TypeInfoType << " + " << Offset + << "}"; } } |