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
This commit is contained in:
Chris Lattner 2006-10-09 17:28:13 +00:00
parent ecdb9f93c4
commit 45d10470c9

View 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;