[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 5 23:47:13 PDT 2005
Changes in directory llvm/lib/Transforms:
ExprTypeConvert.cpp updated: 1.104 -> 1.105
---
Log message:
preserve the tail marker
---
Diffs of the changes: (+2 -0)
ExprTypeConvert.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Transforms/ExprTypeConvert.cpp
diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.104 llvm/lib/Transforms/ExprTypeConvert.cpp:1.105
--- llvm/lib/Transforms/ExprTypeConvert.cpp:1.104 Thu Apr 21 18:45:55 2005
+++ llvm/lib/Transforms/ExprTypeConvert.cpp Fri May 6 01:46:58 2005
@@ -523,6 +523,8 @@
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;
More information about the llvm-commits
mailing list