Simplify conditional.
authorEric Christopher <echristo@gmail.com>
Thu, 2 Jan 2014 21:03:22 +0000 (21:03 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 2 Jan 2014 21:03:22 +0000 (21:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198350 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfUnit.cpp

index aa04a46676f22976762326b40d8d9ed1316fbb51..17eb5037d4e9b94b95d39bf0e693fd34347d19a7 100644 (file)
@@ -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 {