aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/FunctionResolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-08 00:38:20 +0000
committerChris Lattner <sabre@nondot.org>2002-11-08 00:38:20 +0000
commit6f23963adc8c3257ba3e4998d7894e147ca4b078 (patch)
tree834db9eb04aba13e10eb2cef3702cfd20b13583a /lib/Transforms/IPO/FunctionResolution.cpp
parenta91f8ca884790bcedb5e6d0b139fb3f317afe63f (diff)
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
Diffstat (limited to 'lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r--lib/Transforms/IPO/FunctionResolution.cpp3
1 files changed, 1 insertions, 2 deletions
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<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!