forked from OSchip/llvm-project
Fix bug: FunctionResolve/2002-11-07-RetMismatch.ll
llvm-svn: 4618
This commit is contained in:
parent
e0bc42dd69
commit
5997c3d866
|
@ -251,8 +251,7 @@ static bool ProcessGlobalsWithSameName(Module &M,
|
|||
// to 'int (int)' or 'int ()' or whatever else is not completely generic.
|
||||
//
|
||||
Function *F = cast<Function>(Globals[i]);
|
||||
if (!F->getFunctionType()->isVarArg() ||
|
||||
F->getFunctionType()->getNumParams()) {
|
||||
if (!F->isExternal()) {
|
||||
if (Concrete)
|
||||
return false; // Found two different functions types. Can't choose!
|
||||
|
||||
|
|
Loading…
Reference in New Issue