Couple of small logical cleanups to use !empty rather than other
authorEric Christopher <echristo@gmail.com>
Wed, 4 Dec 2013 21:20:15 +0000 (21:20 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 4 Dec 2013 21:20:15 +0000 (21:20 +0000)
checks. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196412 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 5e6d37328ef2b2e29c6f3304eef8036fdf4fea77..2e9f89e640b72c790451ec4585c8907d1dcbe798 100644 (file)
@@ -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,