Make sure to include name information if we have it
authorChris Lattner <sabre@nondot.org>
Fri, 1 Nov 2002 04:49:06 +0000 (04:49 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 Nov 2002 04:49:06 +0000 (04:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4481 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/ExprTypeConvert.cpp

index 995df98b6b53c1d267b3165eed4946f4a90d0460..28b92896a88476e798947e37f932aca815c11a54 100644 (file)
@@ -1134,7 +1134,8 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal,
           // Create a cast to convert it to the right type, we know that this
           // is a lossless cast...
           //
-          Params[i] = new CastInst(Params[i], PTs[i], "call.resolve.cast", It);
+          Params[i] = new CastInst(Params[i], PTs[i],  "callarg.cast." +
+                                   Params[i]->getName(), It);
         }
       Meth = NewVal;  // Update call destination to new value