Don't emit useless warning messages.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-04-12 17:56:16 +00:00
parent 35dd5b0f58
commit 403d43a1a9

View File

@ -192,6 +192,7 @@ static unsigned *getArgumentPermutation(Function* Fn, Function* NewFn) {
Function *llvm::UpgradeIntrinsicFunction(Function* F) { Function *llvm::UpgradeIntrinsicFunction(Function* F) {
// See if its one of the name's we're interested in. // See if its one of the name's we're interested in.
if (Function *R = getUpgradedIntrinsic(F)) { if (Function *R = getUpgradedIntrinsic(F)) {
if (R->getName() != F->getName())
std::cerr << "WARNING: change " << F->getName() << " to " std::cerr << "WARNING: change " << F->getName() << " to "
<< R->getName() << "\n"; << R->getName() << "\n";
return R; return R;