mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
getMachineBasicBlockAddress returns a uintptr_t - don't truncate
to unsigned only to extend back to a pointer sized value on the next line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f74f69ff4
commit
17c6e6d9cf
@ -90,7 +90,7 @@ bool ELFCodeEmitter::finishFunction(MachineFunction &MF) {
|
||||
for (std::vector<MachineRelocation>::iterator MRI = JTRelocations.begin(),
|
||||
MRE = JTRelocations.end(); MRI != MRE; ++MRI) {
|
||||
MachineRelocation &MR = *MRI;
|
||||
unsigned MBBOffset = getMachineBasicBlockAddress(MR.getBasicBlock());
|
||||
uintptr_t MBBOffset = getMachineBasicBlockAddress(MR.getBasicBlock());
|
||||
MR.setResultPointer((void*)MBBOffset);
|
||||
MR.setConstantVal(ES->SectionIdx);
|
||||
JTSection.addRelocation(MR);
|
||||
|
Loading…
Reference in New Issue
Block a user