mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
Fix bug in previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
911afde4ae
commit
9ecf3bf708
@ -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)) {
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user