Skip to content

Commit 5f2aa91

Browse files
committed
[clang][Interp][NFC] Don't try to dump uninitialized global variables
They don't contain anything useful.
1 parent d4d3239 commit 5f2aa91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/Disasm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ LLVM_DUMP_METHOD void Program::dump(llvm::raw_ostream &OS) const {
150150
}
151151
Desc->dump(OS);
152152
OS << "\n";
153-
if (Desc->isPrimitive() && !Desc->isDummy()) {
153+
if (GP.isInitialized() && Desc->isPrimitive() && !Desc->isDummy()) {
154154
OS << " ";
155155
{
156156
ColorScope SC(OS, true, {llvm::raw_ostream::BRIGHT_CYAN, false});

0 commit comments

Comments
 (0)