From 6f23963adc8c3257ba3e4998d7894e147ca4b078 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 8 Nov 2002 00:38:20 +0000 Subject: 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 --- lib/Transforms/IPO/FunctionResolution.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Transforms/IPO/FunctionResolution.cpp') diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 09d46bedd9..8ff786ecef 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! -- cgit v1.2.3-18-g5258