commit | 45d10470c972d6b0bc0eff6590bc1fb016c14fd3 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Oct 09 17:28:13 2006 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Oct 09 17:28:13 2006 +0000 |
tree | 4bc31208744c10f461907b8c72cbe3a52d39852d | |
parent | ecdb9f93c42e54574e1eaf121ad68b6e27f721fb [diff] [blame] |
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
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index dab6867..d9e7242 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp
@@ -193,7 +193,7 @@ } void CallGraph::destroy() { - if(!FunctionMap.size()) { + if (!FunctionMap.empty()) { for (FunctionMapTy::iterator I = FunctionMap.begin(), E = FunctionMap.end(); I != E; ++I) delete I->second;