mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 11:08:27 +00:00
Ignore line number of debug value in undefined register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69081e9291
commit
f2e7767624
@ -2631,6 +2631,7 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
||||
assert (MI->getNumOperands() > 1 && "Invalid machine instruction!");
|
||||
DIVariable DV(MI->getOperand(MI->getNumOperands() - 1).getMetadata());
|
||||
if (!DV.Verify()) continue;
|
||||
if (isDbgValueInUndefinedReg(MI)) continue;
|
||||
// If DBG_VALUE is for a local variable then it needs a label.
|
||||
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
|
||||
InsnNeedsLabel.insert(MI);
|
||||
|
Loading…
Reference in New Issue
Block a user