aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/CallGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-09 17:28:13 +0000
committerChris Lattner <sabre@nondot.org>2006-10-09 17:28:13 +0000
commit45d10470c972d6b0bc0eff6590bc1fb016c14fd3 (patch)
tree4bc31208744c10f461907b8c72cbe3a52d39852d /lib/Analysis/IPA/CallGraph.cpp
parentecdb9f93c42e54574e1eaf121ad68b6e27f721fb (diff)
Fix a bug pointed out by Zhongxing Xu
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp
index dab6867d32..d9e7242695 100644
--- a/lib/Analysis/IPA/CallGraph.cpp
+++ b/lib/Analysis/IPA/CallGraph.cpp
@@ -193,7 +193,7 @@ void CallGraph::initialize(Module &M) {
}
void CallGraph::destroy() {
- if(!FunctionMap.size()) {
+ if (!FunctionMap.empty()) {
for (FunctionMapTy::iterator I = FunctionMap.begin(), E = FunctionMap.end();
I != E; ++I)
delete I->second;