From: Torok Edwin Date: Fri, 29 May 2009 10:28:44 +0000 (+0000) Subject: for instructions with void type we have no choice but print the instruction as X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7e55a00d061629e5e38a1072d03618a5b76a8f9a;p=oota-llvm.git 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 --- 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;