diff options
| author | Adrian Prantl <aprantl@apple.com> | 2013-07-10 16:56:52 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2013-07-10 16:56:52 +0000 |
| commit | d3f6fe51ab4f2886ab90be592d8826736b2a9094 (patch) | |
| tree | d82981ce5afef0c0b612ff2a34520bde139e3933 /llvm/lib/CodeGen/RegAllocFast.cpp | |
| parent | c31ec1c9480d65542df18881900c08ffa3b68324 (diff) | |
| download | bcm5719-llvm-d3f6fe51ab4f2886ab90be592d8826736b2a9094.tar.gz bcm5719-llvm-d3f6fe51ab4f2886ab90be592d8826736b2a9094.zip | |
Use the appropriate unsigned int type for the offset.
llvm-svn: 186015
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index cd8b66469fb..58d00da0144 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -299,7 +299,7 @@ void RAFast::spillVirtReg(MachineBasicBlock::iterator MI, 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. @@ -856,7 +856,8 @@ void RAFast::AllocateBasicBlock() { } 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(); |

