aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/FunctionResolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-20 23:50:38 +0000
committerChris Lattner <sabre@nondot.org>2003-08-20 23:50:38 +0000
commitb29170fa40897a9b946557f7b7448661e5f78fdf (patch)
tree2e4bb79bb4c68e57a856bf8838f6831a1632b110 /lib/Transforms/IPO/FunctionResolution.cpp
parent09dcfda7228a680c9c0a276715416206cd38dc66 (diff)
Unless we CANNOT merge the arguments, do so
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r--lib/Transforms/IPO/FunctionResolution.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp
index e4bfcb9114..7d60981453 100644
--- a/lib/Transforms/IPO/FunctionResolution.cpp
+++ b/lib/Transforms/IPO/FunctionResolution.cpp
@@ -69,7 +69,9 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals,
std::cerr << "WARNING: Function [" << Old->getName()
<< "]: Parameter types conflict for: '" << OldMT
<< "' and '" << ConcreteMT << "'\n";
- return Changed;
+ if (OldMT->getParamTypes()[i]->getPrimitiveID() !=
+ ConcreteMT->getParamTypes()[i]->getPrimitiveID())
+ return Changed;
}
// Attempt to convert all of the uses of the old function to the concrete