mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Use the appropriate unsigned int type for the offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4759f26c31
commit
43ae5e85f8
@ -299,7 +299,7 @@ void RAFast::spillVirtReg(MachineBasicBlock::iterator MI,
|
|||||||
MachineInstr *DBG = LRIDbgValues[li];
|
MachineInstr *DBG = LRIDbgValues[li];
|
||||||
const MDNode *MDPtr = DBG->getOperand(2).getMetadata();
|
const MDNode *MDPtr = DBG->getOperand(2).getMetadata();
|
||||||
bool IsIndirect = DBG->getOperand(1).isImm(); // Register-indirect value?
|
bool IsIndirect = DBG->getOperand(1).isImm(); // Register-indirect value?
|
||||||
int64_t Offset = IsIndirect ? DBG->getOperand(1).getImm() : 0;
|
uint64_t Offset = IsIndirect ? DBG->getOperand(1).getImm() : 0;
|
||||||
DebugLoc DL;
|
DebugLoc DL;
|
||||||
if (MI == MBB->end()) {
|
if (MI == MBB->end()) {
|
||||||
// If MI is at basic block end then use last instruction's location.
|
// If MI is at basic block end then use last instruction's location.
|
||||||
@ -856,7 +856,8 @@ void RAFast::AllocateBasicBlock() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Modify DBG_VALUE now that the value is in a spill slot.
|
// Modify DBG_VALUE now that the value is in a spill slot.
|
||||||
int64_t Offset = MI->getOperand(1).getImm();
|
bool IsIndirect = MI->getOperand(1).isImm();
|
||||||
|
uint64_t Offset = IsIndirect ? MI->getOperand(1).getImm() : 0;
|
||||||
const MDNode *MDPtr =
|
const MDNode *MDPtr =
|
||||||
MI->getOperand(MI->getNumOperands()-1).getMetadata();
|
MI->getOperand(MI->getNumOperands()-1).getMetadata();
|
||||||
DebugLoc DL = MI->getDebugLoc();
|
DebugLoc DL = MI->getDebugLoc();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user