Skip to content

Commit 16aa190

Browse files
authored
[clang][bytecode][NFC] Print more info in Pointer::operator<< (llvm#183691)
So we know whether a pointer is a dummy and alive.
1 parent c690414 commit 16aa190

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

clang/lib/AST/ByteCode/Pointer.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,10 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Pointer &P) {
875875
else
876876
OS << " index " << P.getIndex();
877877
}
878+
if (P.isBlockPointer() && P.block() && P.block()->isDummy())
879+
OS << " dummy";
880+
if (!P.isLive())
881+
OS << " dead";
878882
return OS;
879883
}
880884

0 commit comments

Comments
 (0)