From: Reid Spencer Date: Wed, 12 Apr 2006 17:56:16 +0000 (+0000) Subject: Don't emit useless warning messages. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=403d43a1a9e94e732b29996ae6525694bd7b6eec;p=oota-llvm.git Don't emit useless warning messages. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27617 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AutoUpgrade.cpp b/lib/VMCore/AutoUpgrade.cpp index b7b481157c8..1529d1bf1f7 100644 --- a/lib/VMCore/AutoUpgrade.cpp +++ b/lib/VMCore/AutoUpgrade.cpp @@ -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;