diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-07-28 23:00:45 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-07-28 23:00:45 +0000 |
commit | 8b9bb534a176a26a8cd6a80366aabbc03abcc7e8 (patch) | |
tree | b7c42fbc153996474d92a2273ef2a38fbab59bfc /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | d92ac5a259b19236696f4af0a8d199fb665761ea (diff) | |
download | bcm5719-llvm-8b9bb534a176a26a8cd6a80366aabbc03abcc7e8.tar.gz bcm5719-llvm-8b9bb534a176a26a8cd6a80366aabbc03abcc7e8.zip |
Remove the unused offset from DBG_VALUE (NFC)
Followup to r309426.
rdar://problem/33580047
llvm-svn: 309450
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp index 4614ddce5e0..72b519d7f7c 100644 --- a/llvm/lib/CodeGen/LiveDebugValues.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues.cpp @@ -461,7 +461,7 @@ void LiveDebugValues::transferSpillInst(MachineInstr &MI, int SpillOffset = extractSpillBaseRegAndOffset(MI, SpillBase); const MachineInstr *DMI = &VarLocIDs[ID].MI; MachineInstr *SpDMI = - BuildMI(*MF, DMI->getDebugLoc(), DMI->getDesc(), true, SpillBase, 0, + BuildMI(*MF, DMI->getDebugLoc(), DMI->getDesc(), true, SpillBase, DMI->getDebugVariable(), DMI->getDebugExpression()); SpDMI->getOperand(1).setImm(SpillOffset); DEBUG(dbgs() << "Creating DBG_VALUE inst for spill: "; @@ -582,7 +582,7 @@ bool LiveDebugValues::join(MachineBasicBlock &MBB, VarLocInMBB &OutLocs, const MachineInstr *DMI = &DiffIt.MI; MachineInstr *MI = BuildMI(MBB, MBB.instr_begin(), DMI->getDebugLoc(), DMI->getDesc(), - DMI->isIndirectDebugValue(), DMI->getOperand(0).getReg(), 0, + DMI->isIndirectDebugValue(), DMI->getOperand(0).getReg(), DMI->getDebugVariable(), DMI->getDebugExpression()); if (DMI->isIndirectDebugValue()) MI->getOperand(1).setImm(DMI->getOperand(1).getImm()); |