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
This commit is contained in:
Chris Lattner 2002-11-01 04:49:06 +00:00
parent e6f960a512
commit a145d4188c

View 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