[llvm] r229464 - AsmPrinter: Use DIExpression default constructor, NFC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Feb 16 18:42:45 PST 2015
Author: dexonsmith
Date: Mon Feb 16 20:42:45 2015
New Revision: 229464
URL: http://llvm.org/viewvc/llvm-project?rev=229464&view=rev
Log:
AsmPrinter: Use DIExpression default constructor, NFC
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=229464&r1=229463&r2=229464&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Mon Feb 16 20:42:45 2015
@@ -701,7 +701,7 @@ void DwarfCompileUnit::collectDeadVariab
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));
More information about the llvm-commits
mailing list