diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:46:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:46:58 +0000 |
commit | 1430ef134d36888b99d2e6fedd2b025882593538 (patch) | |
tree | d09aef7e0653908607315cb6f41b0a91b91e44eb /lib/Transforms/ExprTypeConvert.cpp | |
parent | cfae2e80c813fa0e03ebd86a525cc3f034b2b8d7 (diff) |
preserve the tail marker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ExprTypeConvert.cpp')
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index f43390da83..a022461d33 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -523,6 +523,8 @@ Value *llvm::ConvertExpressionToType(Value *V, const Type *Ty, Res = new CallInst(Constant::getNullValue(NewPTy), std::vector<Value*>(I->op_begin()+1, I->op_end()), Name); + if (cast<CallInst>(I)->isTailCall()) + cast<CallInst>(Res)->setTailCall(); VMC.ExprMap[I] = Res; Res->setOperand(0, ConvertExpressionToType(I->getOperand(0),NewPTy,VMC,TD)); break; |