Use .empty() instead of .size().
authorDan Gohman <gohman@apple.com>
Thu, 12 Aug 2010 23:46:28 +0000 (23:46 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 12 Aug 2010 23:46:28 +0000 (23:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110981 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/PassManager.cpp

index acdeea3f2acd4ca238fdca4905831c65e7851121..a331253a330c2911ed89bd309167664d339448a8 100644 (file)
@@ -737,7 +737,7 @@ void PMDataManager::recordAvailableAnalysis(Pass *P) {
   
   AvailableAnalysis[PI] = P;
   
-  assert(AvailableAnalysis.size());
+  assert(!AvailableAnalysis.empty());
 
   //This pass is the current implementation of all of the interfaces it
   //implements as well.