preserve the tail marker

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-05-06 06:46:58 +00:00
parent cfae2e80c8
commit 1430ef134d
3 changed files with 6 additions and 0 deletions

View File

@@ -430,6 +430,8 @@ void DAE::RemoveDeadArgumentsFromFunction(Function *F) {
Args, "", Call);
} else {
New = new CallInst(NF, Args, "", Call);
if (cast<CallInst>(Call)->isTailCall())
cast<CallInst>(New)->setTailCall();
}
Args.clear();