Use the correct vreg here.
[oota-llvm.git] / lib / Target / ARM / ARMISelLowering.cpp
index 44cc1e013f6acc5e9c7c8edff1345058172a1dbc..f69dab45300feda03f274c7db7d6e3131d1f13ee 100644 (file)
@@ -5743,7 +5743,7 @@ EmitSjLjDispatchBlock(MachineInstr *MI, MachineBasicBlock *MBB) const {
                    .addImm(2));
 
     unsigned NewVReg3 = MRI->createVirtualRegister(TRC);
-    AddDefaultPred(BuildMI(DispContBB, dl, TII->get(ARM::tLEApcrelJT), NewVReg2)
+    AddDefaultPred(BuildMI(DispContBB, dl, TII->get(ARM::tLEApcrelJT), NewVReg3)
                    .addJumpTableIndex(MJTI)
                    .addImm(UId));