Skip to content

Commit

Permalink
Simplify conditional.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198350 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Jan 2, 2014
1 parent ee60d39 commit 932aa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 932aa0d

Please sign in to comment.