summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-17 02:42:45 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-17 02:42:45 +0000
commit752d6df22ddb8c16d52989dee167d28ea00b798f (patch)
treee519ba379862e44352aae0b26ad7c8e820485932 /llvm/lib/CodeGen
parent55db07016eac1ac4e6407fba2992eae895e25f2d (diff)
downloadbcm5719-llvm-752d6df22ddb8c16d52989dee167d28ea00b798f.tar.gz
bcm5719-llvm-752d6df22ddb8c16d52989dee167d28ea00b798f.zip
AsmPrinter: Use DIExpression default constructor, NFC
llvm-svn: 229464
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 6a8c9b5e43f..81f2329657b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -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));
OpenPOWER on IntegriCloud