From: Chris Lattner Date: Fri, 8 Nov 2002 00:38:20 +0000 (+0000) Subject: Fix bug: FunctionResolve/2002-11-07-RetMismatch.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6f23963adc8c3257ba3e4998d7894e147ca4b078;p=oota-llvm.git Fix bug: FunctionResolve/2002-11-07-RetMismatch.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4618 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 09d46bedd92..8ff786ecef2 100644 --- a/lib/Transforms/IPO/FunctionResolution.cpp +++ b/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!