diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-09 17:28:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-09 17:28:13 +0000 |
commit | 45d10470c972d6b0bc0eff6590bc1fb016c14fd3 (patch) | |
tree | 4bc31208744c10f461907b8c72cbe3a52d39852d /lib/Analysis/IPA/CallGraph.cpp | |
parent | ecdb9f93c42e54574e1eaf121ad68b6e27f721fb (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.cpp | 2 |
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; |