summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-07-28 22:36:55 +0000
committerAdrian Prantl <aprantl@apple.com>2017-07-28 22:36:55 +0000
commit1b63dc54b07d50f328d346e4fde61f4ebc915916 (patch)
treecd6e7230209ab3dcda5825d8970efb7677bc3b55 /llvm/lib/CodeGen/RegAllocFast.cpp
parent6af104e4185ee80199df1e994d48003a35af8435 (diff)
downloadbcm5719-llvm-1b63dc54b07d50f328d346e4fde61f4ebc915916.tar.gz
bcm5719-llvm-1b63dc54b07d50f328d346e4fde61f4ebc915916.zip
Remove the unused DBG_VALUE offset parameter from RegAllocFast (NFC)
Followup to r309426. rdar://problem/33580047 llvm-svn: 309446
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index d5538be4bba..fd6c2877667 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -879,7 +879,9 @@ void RAFast::AllocateBasicBlock() {
else {
// Modify DBG_VALUE now that the value is in a spill slot.
bool IsIndirect = MI->isIndirectDebugValue();
- uint64_t Offset = IsIndirect ? MI->getOperand(1).getImm() : 0;
+ if (IsIndirect)
+ assert(MI->getOperand(1).getImm() == 0 &&
+ "DBG_VALUE with nonzero offset");
const MDNode *Var = MI->getDebugVariable();
const MDNode *Expr = MI->getDebugExpression();
DebugLoc DL = MI->getDebugLoc();
@@ -890,7 +892,7 @@ void RAFast::AllocateBasicBlock() {
MachineInstr *NewDV = BuildMI(*MBB, MBB->erase(MI), DL,
TII->get(TargetOpcode::DBG_VALUE))
.addFrameIndex(SS)
- .addImm(Offset)
+ .addImm(0U)
.addMetadata(Var)
.addMetadata(Expr);
DEBUG(dbgs() << "Modifying debug info due to spill:"
OpenPOWER on IntegriCloud