Skip to content

Commit 5f55048

Browse files
authored
[clang][bytecode] Print field descriptor in Pointer::print() (#168002)
This is almost always useful information and ::print() is debug-only code.
1 parent 30d8f69 commit 5f55048

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/AST/ByteCode/Pointer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,9 @@ class Pointer {
830830

831831
inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Pointer &P) {
832832
P.print(OS);
833+
OS << ' ';
834+
if (const Descriptor *D = P.getFieldDesc())
835+
D->dump(OS);
833836
return OS;
834837
}
835838

0 commit comments

Comments
 (0)