mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
Fix a fairly nasty bug that prevented bugpoint from working quite right when
hacking on programs with two functions that have the same name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
58d84ced5f
commit
87ab7e994f
@ -195,7 +195,9 @@ Module *llvm::SplitFunctionsOutOfModule(Module *M,
|
||||
bool funcFound = false;
|
||||
for (std::vector<Function*>::const_iterator FI = F.begin(), Fe = F.end();
|
||||
FI != Fe; ++FI)
|
||||
if (I->getName() == (*FI)->getName()) funcFound = true;
|
||||
if (I->getName() == (*FI)->getName() &&
|
||||
I->getType() == (*FI)->getType())
|
||||
funcFound = true;
|
||||
|
||||
if (!funcFound)
|
||||
DeleteFunctionBody(I);
|
||||
|
Loading…
Reference in New Issue
Block a user