mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 08:29:43 +00:00
Ugh, a bug fix needed because of the bug in the CallGraph code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f52d01bbc5
commit
c9d3e5721b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user