From: Chris Lattner Date: Fri, 1 Nov 2002 04:49:06 +0000 (+0000) Subject: Make sure to include name information if we have it X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a145d4188cdb4243a8018a4537e3dc4ba25c72fa;p=oota-llvm.git Make sure to include name information if we have it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4481 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 995df98b6b5..28b92896a88 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -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