Avoid naming things exactly the same
authorChris Lattner <sabre@nondot.org>
Sun, 27 Apr 2003 22:55:56 +0000 (22:55 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 Apr 2003 22:55:56 +0000 (22:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5966 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/LevelRaise.cpp

index 110c0cc505ce204e55fc0fde0022e341f3a02647..50ed60c903705aa8bf87825dff9b76c4cede3938 100644 (file)
@@ -505,7 +505,7 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
 
       // Create a new cast, inserting it right before the function call...
       CastInst *NewCast = new CastInst(CI->getCalledValue(), NewPFunTy,
-                                       CI->getCalledValue()->getName()CI);
+                                       CI->getCalledValue()->getName()+"_c",CI);
 
       // Create a new call instruction...
       CallInst *NewCall = new CallInst(NewCast,