diff options
-rw-r--r-- | lib/Target/PowerPC/PPCBranchSelector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCBranchSelector.cpp b/lib/Target/PowerPC/PPCBranchSelector.cpp index 7efa2ef78a..f5212afe63 100644 --- a/lib/Target/PowerPC/PPCBranchSelector.cpp +++ b/lib/Target/PowerPC/PPCBranchSelector.cpp @@ -137,7 +137,7 @@ bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) { } else { // Long branch, skip next branch instruction (i.e. $PC+8). ++NumExpanded; - BuildMI(*MBB, MBBJ, Inverted, 2).addReg(CRReg).addImm(2); + BuildMI(*MBB, MBBI, Inverted, 2).addReg(CRReg).addImm(2); MBBJ = BuildMI(*MBB, MBBI, PPC::B, 1).addMBB(DestMBB); } |