Use .empty() instead of .size().
authorBill Wendling <isanbard@gmail.com>
Thu, 11 Feb 2010 10:37:57 +0000 (10:37 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 11 Feb 2010 10:37:57 +0000 (10:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95871 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfException.cpp

index 8b1616ed098d1aa61cc2c8f8e5cce0c02516c5ec..22b1b1caa0ef62b381f1cc0b972135b96c55402f 100644 (file)
@@ -907,7 +907,7 @@ void DwarfException::EmitExceptionTable() {
   }
 
   // Emit the Catch TypeInfos.
-  if (TypeInfos.size() != 0) EOL("-- Catch TypeInfos --");
+  if (!TypeInfos.empty()) EOL("-- Catch TypeInfos --");
   for (std::vector<GlobalVariable *>::const_reverse_iterator
          I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) {
     const GlobalVariable *GV = *I;
@@ -923,7 +923,7 @@ void DwarfException::EmitExceptionTable() {
   }
 
   // Emit the Exception Specifications.
-  if (FilterIds.size() != 0) EOL("-- Filter IDs --");
+  if (!FilterIds.empty()) EOL("-- Filter IDs --");
   for (std::vector<unsigned>::const_iterator
          I = FilterIds.begin(), E = FilterIds.end(); I < E; ++I) {
     unsigned TypeID = *I;