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;