From: Misha Brukman Date: Fri, 25 Jun 2004 14:57:19 +0000 (+0000) Subject: Fix bug in previous checkin. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ecf3bf7085c818849257f5f3f7d1345bfaba802;p=oota-llvm.git Fix bug in previous checkin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14405 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp index 96920ec28d7..6f214f88cfd 100644 --- a/lib/Target/PowerPC/PPC32ISelSimple.cpp +++ b/lib/Target/PowerPC/PPC32ISelSimple.cpp @@ -370,7 +370,7 @@ unsigned ISel::getReg(Value *V, MachineBasicBlock *MBB, // Move the address of the global into the register BuildMI(*MBB, IPt, PPC32::LOADHiAddr, 2, Reg1).addReg(PPC32::R0) .addGlobalAddress(GV); - BuildMI(*MBB, IPt, PPC32::LOADLoAddr, 2, Reg2).addReg(Reg1)i + BuildMI(*MBB, IPt, PPC32::LOADLoAddr, 2, Reg2).addReg(Reg1) .addGlobalAddress(GV); return Reg2; } else if (CastInst *CI = dyn_cast(V)) { diff --git a/lib/Target/PowerPC/PowerPCISelSimple.cpp b/lib/Target/PowerPC/PowerPCISelSimple.cpp index 96920ec28d7..6f214f88cfd 100644 --- a/lib/Target/PowerPC/PowerPCISelSimple.cpp +++ b/lib/Target/PowerPC/PowerPCISelSimple.cpp @@ -370,7 +370,7 @@ unsigned ISel::getReg(Value *V, MachineBasicBlock *MBB, // Move the address of the global into the register BuildMI(*MBB, IPt, PPC32::LOADHiAddr, 2, Reg1).addReg(PPC32::R0) .addGlobalAddress(GV); - BuildMI(*MBB, IPt, PPC32::LOADLoAddr, 2, Reg2).addReg(Reg1)i + BuildMI(*MBB, IPt, PPC32::LOADLoAddr, 2, Reg2).addReg(Reg1) .addGlobalAddress(GV); return Reg2; } else if (CastInst *CI = dyn_cast(V)) {