summaryrefslogtreecommitdiffstats
path: root/lib/VMCore/PassManager.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-12 23:46:28 +0000
committerDan Gohman <gohman@apple.com>2010-08-12 23:46:28 +0000
commit9e2f6284bc81e8a8b0bbe22c8e8c8c0b0b52ef74 (patch)
treed9396f02a5e68845a47d52f79ee2c2012ce5a187 /lib/VMCore/PassManager.cpp
parent09c45d2fe8fb0564ea2095f77fc79e184aa0a1a7 (diff)
downloadexternal_llvm-9e2f6284bc81e8a8b0bbe22c8e8c8c0b0b52ef74.zip
external_llvm-9e2f6284bc81e8a8b0bbe22c8e8c8c0b0b52ef74.tar.gz
external_llvm-9e2f6284bc81e8a8b0bbe22c8e8c8c0b0b52ef74.tar.bz2
Use .empty() instead of .size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r--lib/VMCore/PassManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index acdeea3..a331253 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -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.