From 7e55a00d061629e5e38a1072d03618a5b76a8f9a Mon Sep 17 00:00:00 2001 From: Torok Edwin Date: Fri, 29 May 2009 10:28:44 +0000 Subject: [PATCH] for instructions with void type we have no choice but print the instruction as is, otherwise we get a . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72567 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVN.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 946c33eea44..bd13ee59b3f 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1165,7 +1165,10 @@ bool GVN::processLoad(LoadInst *L, SmallVectorImpl &toErase) { WriteAsOperand(*DOUT.stream(), L); Instruction *I = dep.getInst(); DOUT << " is clobbered by " << I->getOpcodeName() << " instruction "; - WriteAsOperand(*DOUT.stream(), I, false); + if (I->getType()->isFirstClassType()) + WriteAsOperand(*DOUT.stream(), I, false); + else + DOUT << *I; DOUT << "\n"; ); return false; -- 2.34.1