Fix bug in previous checkin.

llvm-svn: 14405
This commit is contained in:
Misha Brukman 2004-06-25 14:57:19 +00:00
parent 9ff1cda1a8
commit 468d9a0087
2 changed files with 2 additions and 2 deletions

View File

@ -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<CastInst>(V)) {

View File

@ -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<CastInst>(V)) {