git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132433
91177308-0d34-0410-b5e6-
96231b3b80d8
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;