Skip to content

Commit f4181fd

Browse files
authored
Update llvm-ir2vec.cpp
1 parent 47d402c commit f4181fd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ class IR2VecTool {
9292

9393
OS << '\n' << OpcStr << ' ' << TypeStr << ' ';
9494

95-
LLVM_DEBUG(I.print(dbgs()); dbgs() << "\n");
96-
LLVM_DEBUG(I.getType()->print(dbgs()); dbgs() << " Type\n");
95+
LLVM_DEBUG({
96+
I.print(dbgs());
97+
dbgs() << "\n";
98+
I.getType()->print(dbgs());
99+
dbgs() << " Type\n";
100+
});
97101

98102
for (const Use &U : I.operands())
99103
OS << Vocabulary::getVocabKeyForOperandKind(

0 commit comments

Comments
 (0)