From 5997c3d866ecc8e97fec2ca7bbb199139c9d0f6e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 8 Nov 2002 00:38:20 +0000 Subject: [PATCH] Fix bug: FunctionResolve/2002-11-07-RetMismatch.ll llvm-svn: 4618 --- llvm/lib/Transforms/IPO/FunctionResolution.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/IPO/FunctionResolution.cpp b/llvm/lib/Transforms/IPO/FunctionResolution.cpp index 09d46bedd92b..8ff786ecef2c 100644 --- a/llvm/lib/Transforms/IPO/FunctionResolution.cpp +++ b/llvm/lib/Transforms/IPO/FunctionResolution.cpp @@ -251,8 +251,7 @@ static bool ProcessGlobalsWithSameName(Module &M, // to 'int (int)' or 'int ()' or whatever else is not completely generic. // Function *F = cast(Globals[i]); - if (!F->getFunctionType()->isVarArg() || - F->getFunctionType()->getNumParams()) { + if (!F->isExternal()) { if (Concrete) return false; // Found two different functions types. Can't choose!