Skip to content

Commit 3dddaa3

Browse files
authored
[clang][bytecode] Print dummy-status of global variables (#160240)
in Program::dump().
1 parent 2ab02b6 commit 3dddaa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/AST/ByteCode/Disasm.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ LLVM_DUMP_METHOD void Program::dump(llvm::raw_ostream &OS) const {
323323
: TerminalColor{llvm::raw_ostream::RED, false});
324324
OS << (GP.isInitialized() ? "initialized " : "uninitialized ");
325325
}
326+
if (GP.block()->isDummy())
327+
OS << "dummy ";
326328
Desc->dump(OS);
327329

328330
if (GP.isInitialized() && Desc->IsTemporary) {

0 commit comments

Comments
 (0)