From 932aa0d9f6a389a3fb8e2c6409f4a9aac37b4714 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 2 Jan 2014 21:03:22 +0000 Subject: [PATCH] Simplify conditional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198350 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index aa04a46676f..17eb5037d4e 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -270,7 +270,7 @@ void DwarfCompileUnit::addLabelAddress(DIE *Die, dwarf::Attribute Attribute, DD->addArangeLabel(SymbolCU(this, Label)); if (!DD->useSplitDwarf()) { - if (Label != NULL) { + if (Label) { DIEValue *Value = new (DIEValueAllocator) DIELabel(Label); Die->addValue(Attribute, dwarf::DW_FORM_addr, Value); } else {