diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-12-04 21:20:15 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-12-04 21:20:15 +0000 |
| commit | 1cdb63db96a7750782b0fee2f30319123f58ac59 (patch) | |
| tree | 3357da4c7307938344c73237ea7f80c29921cd7e /llvm/lib/CodeGen | |
| parent | 395485efc00ed2b45ffe788bcb8217bda7459bf0 (diff) | |
| download | bcm5719-llvm-1cdb63db96a7750782b0fee2f30319123f58ac59.tar.gz bcm5719-llvm-1cdb63db96a7750782b0fee2f30319123f58ac59.zip | |
Couple of small logical cleanups to use !empty rather than other
checks. No functional change.
llvm-svn: 196412
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 5e6d37328ef..2e9f89e640b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -523,7 +523,7 @@ DIE *DwarfDebug::constructLexicalScopeDIE(CompileUnit *TheCU, DIE *DwarfDebug::constructInlinedScopeDIE(CompileUnit *TheCU, LexicalScope *Scope) { const SmallVectorImpl<InsnRange> &ScopeRanges = Scope->getRanges(); - assert(ScopeRanges.empty() == false && + assert(!ScopeRanges.empty() && "LexicalScope does not have instruction markers!"); if (!Scope->getScopeNode()) @@ -3042,7 +3042,7 @@ CompileUnit *DwarfDebug::constructSkeletonCU(const CompileUnit *CU) { } // Attribute if we've emitted any ranges and their location for the compile unit. - if (CU->getRangeLists().size()) { + if (!CU->getRangeLists().empty()) { if (Asm->MAI->doesDwarfUseRelocationsAcrossSections()) NewCU->addSectionLabel( Die, dwarf::DW_AT_GNU_ranges_base, |

