mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 16:42:07 +00:00
AsmPrinter: Use DIExpression default constructor, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e357351be
commit
47501960ea
@ -701,7 +701,7 @@ void DwarfCompileUnit::collectDeadVariables(DISubprogram SP) {
|
||||
for (unsigned vi = 0, ve = Variables.getNumElements(); vi != ve; ++vi) {
|
||||
DIVariable DV(Variables.getElement(vi));
|
||||
assert(DV.isVariable());
|
||||
DbgVariable NewVar(DV, DIExpression(nullptr), DD);
|
||||
DbgVariable NewVar(DV, DIExpression(), DD);
|
||||
auto VariableDie = constructVariableDIE(NewVar);
|
||||
applyVariableAttributes(NewVar, *VariableDie);
|
||||
SPDIE->addChild(std::move(VariableDie));
|
||||
|
Loading…
x
Reference in New Issue
Block a user