Don't emit useless warning messages.

llvm-svn: 27617
This commit is contained in:
Reid Spencer 2006-04-12 17:56:16 +00:00
parent b1dc436a94
commit 175d57c4bc
1 changed files with 3 additions and 2 deletions

View File

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