Fix a bug pointed out by Zhongxing Xu
authorChris Lattner <sabre@nondot.org>
Mon, 9 Oct 2006 17:28:13 +0000 (17:28 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Oct 2006 17:28:13 +0000 (17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30831 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/CallGraph.cpp

index dab6867d323006d2259c83e610ea69b90b294ee5..d9e7242695cffb4cf205a001e8512e1b71ae0584 100644 (file)
@@ -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;