summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-05-29 10:28:44 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-05-29 10:28:44 +0000
commit6a94624a1b8608a57d2f8e50df71949f2984c44f (patch)
treec9b85967a3486c9d63707d065a183f09c2e4377f /llvm/lib/Transforms
parent72070282eb258a3addf64daa2358e4ba12871d3e (diff)
downloadbcm5719-llvm-6a94624a1b8608a57d2f8e50df71949f2984c44f.tar.gz
bcm5719-llvm-6a94624a1b8608a57d2f8e50df71949f2984c44f.zip
for instructions with void type we have no choice but print the instruction as
is, otherwise we get a <badref>. llvm-svn: 72567
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/GVN.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 946c33eea44..bd13ee59b3f 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -1165,7 +1165,10 @@ bool GVN::processLoad(LoadInst *L, SmallVectorImpl<Instruction*> &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;
OpenPOWER on IntegriCloud