From: Devang Patel Date: Wed, 1 Jun 2011 23:00:17 +0000 (+0000) Subject: A DBG_VALUE that truncates a range does not start another dbg value range. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4ada1d791028041a6609128a8a4f3b5ebf1c837b;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0dc5b74fa37..c09c1c558e5 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;