mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 22:38:56 +00:00
for instructions with void type we have no choice but print the instruction as
is, otherwise we get a <badref>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f3c6d4e5b
commit
7e55a00d06
@ -1165,7 +1165,10 @@ bool GVN::processLoad(LoadInst *L, SmallVectorImpl<Instruction*> &toErase) {
|
|||||||
WriteAsOperand(*DOUT.stream(), L);
|
WriteAsOperand(*DOUT.stream(), L);
|
||||||
Instruction *I = dep.getInst();
|
Instruction *I = dep.getInst();
|
||||||
DOUT << " is clobbered by " << I->getOpcodeName() << " instruction ";
|
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";
|
DOUT << "\n";
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user