mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Ignore line number of debug value in undefined register.
llvm-svn: 105292
This commit is contained in:
parent
b37767db31
commit
345874624f
@ -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