Skip to content
Snippets Groups Projects
Commit da358533 authored by Chris Lattner's avatar Chris Lattner
Browse files

Ugh, a bug fix needed because of the bug in the CallGraph code

llvm-svn: 8519
parent 233f2a08
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,11 @@ namespace {
// Walk the function list, removing prototypes for functions which are not
// used.
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
if (I->use_size() == 0 && I->isExternal())
if (I->use_size() == 0 && I->isExternal()) {
CallGraph[I]->removeAllCalledFunctions();
delete CallGraph.removeFunctionFromModule(I);
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment