diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-23 20:03:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-23 20:03:05 +0000 |
commit | a0f85e56c972b205e9c9cca368bd776154efd88e (patch) | |
tree | daad2299bca2e26f8cfcff79fd33a2b109245e84 /lib/Transforms/IPO/FunctionResolution.cpp | |
parent | c4d360d1d4a134e70f6110317b7099af13ff2f96 (diff) |
Fix bug: FunctionResolve/2003-08-23-ArgumentWarning.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionResolution.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 7d60981453..b6c980b56e 100644 --- a/lib/Transforms/IPO/FunctionResolution.cpp +++ b/lib/Transforms/IPO/FunctionResolution.cpp @@ -65,14 +65,14 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals, if (!Old->use_empty() && !Concrete->use_empty()) for (unsigned i = 0; i < NumArguments; ++i) - if (OldMT->getParamTypes()[i] != ConcreteMT->getParamTypes()[i]) { - std::cerr << "WARNING: Function [" << Old->getName() - << "]: Parameter types conflict for: '" << OldMT - << "' and '" << ConcreteMT << "'\n"; + if (OldMT->getParamTypes()[i] != ConcreteMT->getParamTypes()[i]) if (OldMT->getParamTypes()[i]->getPrimitiveID() != - ConcreteMT->getParamTypes()[i]->getPrimitiveID()) + ConcreteMT->getParamTypes()[i]->getPrimitiveID()) { + std::cerr << "WARNING: Function [" << Old->getName() + << "]: Parameter types conflict for: '" << OldMT + << "' and '" << ConcreteMT << "'\n"; return Changed; - } + } // Attempt to convert all of the uses of the old function to the concrete // form of the function. If there is a use of the fn that we don't |