aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/AutoUpgrade.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/AutoUpgrade.cpp b/lib/VMCore/AutoUpgrade.cpp
index b7b4811..1529d1b 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;