summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4759f26)
raw | patch | inline | side by side (parent: 4759f26)
author | Adrian Prantl <aprantl@apple.com> | |
Wed, 10 Jul 2013 16:56:52 +0000 (16:56 +0000) | ||
committer | Adrian Prantl <aprantl@apple.com> | |
Wed, 10 Jul 2013 16:56:52 +0000 (16:56 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186015 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAllocFast.cpp | patch | blob | history |
index cd8b66469fb8133d1e1bc9318340a729fa415ffb..58d00da01440a4f66ffb0e9ebb68cd4583366d86 100644 (file)
MachineInstr *DBG = LRIDbgValues[li];
const MDNode *MDPtr = DBG->getOperand(2).getMetadata();
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;
if (MI == MBB->end()) {
// If MI is at basic block end then use last instruction's location.
}
else {
// 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 =
MI->getOperand(MI->getNumOperands()-1).getMetadata();
DebugLoc DL = MI->getDebugLoc();