[llvm] r198350 - Simplify conditional.

Eric Christopher echristo at gmail.com
Thu Jan 2 13:03:22 PST 2014


Author: echristo
Date: Thu Jan  2 15:03:22 2014
New Revision: 198350

URL: http://llvm.org/viewvc/llvm-project?rev=198350&view=rev
Log:
Simplify conditional.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp?rev=198350&r1=198349&r2=198350&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Thu Jan  2 15:03:22 2014
@@ -270,7 +270,7 @@ void DwarfCompileUnit::addLabelAddress(D
     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 {





More information about the llvm-commits mailing list