summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-17 00:49:36 +0000
committerChris Lattner <sabre@nondot.org>2006-11-17 00:49:36 +0000
commitbe1a4d80b3694cca925113336f23bfa1305d3f3c (patch)
treecafee4d082974ecef2ea0de66e03ae6da55ec786 /llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
parentd7fda04420720e7487820bd7dff663484dbea0db (diff)
downloadbcm5719-llvm-be1a4d80b3694cca925113336f23bfa1305d3f3c.tar.gz
bcm5719-llvm-be1a4d80b3694cca925113336f23bfa1305d3f3c.zip
fix typo
llvm-svn: 31799
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCBranchSelector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
index e022088acdb..dcbcfbd297b 100644
--- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
@@ -133,12 +133,12 @@ bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
MachineBasicBlock::iterator MBBJ;
if (Displacement >= -32768 && Displacement <= 32767) {
- MBBJ = BuildMI(*MBB, MBBJ, Opcode, 2).addReg(CRReg).addMBB(DestMBB);
+ MBBJ = BuildMI(*MBB, MBBI, Opcode, 2).addReg(CRReg).addMBB(DestMBB);
} else {
// Long branch, skip next branch instruction (i.e. $PC+8).
++NumExpanded;
BuildMI(*MBB, MBBJ, Inverted, 2).addReg(CRReg).addImm(2);
- MBBJ = BuildMI(*MBB, MBBJ, PPC::B, 1).addMBB(DestMBB);
+ MBBJ = BuildMI(*MBB, MBBI, PPC::B, 1).addMBB(DestMBB);
}
// Erase the psuedo COND_BRANCH instruction, and then back up the
OpenPOWER on IntegriCloud