summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PowerPC/PPC64ISelSimple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPC64ISelSimple.cpp b/lib/Target/PowerPC/PPC64ISelSimple.cpp
index 129b038..8f43fcb 100644
--- a/lib/Target/PowerPC/PPC64ISelSimple.cpp
+++ b/lib/Target/PowerPC/PPC64ISelSimple.cpp
@@ -1222,7 +1222,7 @@ void ISel::visitReturnInst(ReturnInst &I) {
visitInstruction(I);
}
}
- BuildMI(BB, PPC::BLR, 1).addImm(0);
+ BuildMI(BB, PPC::BLR, 1).addImm(1);
}
// getBlockAfter - Return the basic block which occurs lexically after the
@@ -1457,7 +1457,7 @@ void ISel::doCall(const ValueRecord &Ret, MachineInstr *CallMI,
BuildMI(BB, PPC::IMPLICIT_DEF, 0, PPC::LR);
BB->push_back(CallMI);
- BuildMI(BB, PPC::NOP, 1).addImm(0);
+ BuildMI(BB, PPC::NOP, 0);
// These functions are automatically eliminated by the prolog/epilog pass
BuildMI(BB, PPC::ADJCALLSTACKUP, 1).addImm(NumBytes);