From: Chris Lattner Date: Mon, 9 Oct 2006 17:28:13 +0000 (+0000) Subject: Fix a bug pointed out by Zhongxing Xu X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=45d10470c972d6b0bc0eff6590bc1fb016c14fd3;p=oota-llvm.git 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 dab6867d323..d9e7242695c 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;