Add missing operand. <rdar://problem/10313323>
authorBill Wendling <isanbard@gmail.com>
Thu, 20 Oct 2011 20:37:11 +0000 (20:37 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 20 Oct 2011 20:37:11 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142615 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 34023af084a160bafc8b91f35f06d19aca532628..7df743b750d4b5ef7c1359b3a9f73162d3c0d324 100644 (file)
@@ -5924,7 +5924,8 @@ EmitSjLjDispatchBlock(MachineInstr *MI, MachineBasicBlock *MBB) const {
       unsigned VReg1 = MRI->createVirtualRegister(TRC);
       AddDefaultPred(BuildMI(DispatchBB, dl, TII->get(ARM::LDRcp))
                      .addReg(VReg1, RegState::Define)
-                     .addConstantPoolIndex(Idx));
+                     .addConstantPoolIndex(Idx)
+                     .addImm(0));
       AddDefaultPred(BuildMI(DispatchBB, dl, TII->get(ARM::CMPrr))
                      .addReg(NewVReg1)
                      .addReg(VReg1, RegState::Kill));