diff options
author | Devang Patel <dpatel@apple.com> | 2011-06-01 23:00:17 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-06-01 23:00:17 +0000 |
commit | 4ada1d791028041a6609128a8a4f3b5ebf1c837b (patch) | |
tree | b14cbba5f1ac7b2f6161a1741fd0ba77d1b1f7b7 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | c432907eca615dfea2de3c467f4087f00203b2d6 (diff) |
A DBG_VALUE that truncates a range does not start another dbg value range.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0dc5b74fa3..c09c1c558e 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1411,6 +1411,11 @@ DwarfDebug::collectVariableInfo(const MachineFunction *MF, const MachineInstr *Begin = *HI; assert(Begin->isDebugValue() && "Invalid History entry"); + // Check if DBG_VALUE is truncating a range. + if (Begin->getNumOperands() > 1 && Begin->getOperand(0).isReg() + && !Begin->getOperand(0).getReg()) + continue; + // Compute the range for a register location. const MCSymbol *FLabel = getLabelBeforeInsn(Begin); const MCSymbol *SLabel = 0; |