mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01: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. llvm-svn: 12604
This commit is contained in:
parent
b3f5ab8d5b
commit
54aa691a5c
@ -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