From a9e9211bbb2a47f4d6db61ef100ccebe4c46c0ff Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 May 2005 06:48:21 +0000 Subject: Preserve tail marker git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21737 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LowerInvoke.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Transforms/Utils/LowerInvoke.cpp') diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp index fee18aa77c..b751bc0d26 100644 --- a/lib/Transforms/Utils/LowerInvoke.cpp +++ b/lib/Transforms/Utils/LowerInvoke.cpp @@ -195,7 +195,7 @@ void LowerInvoke::writeAbortMessage(Instruction *IB) { Args[i] = ConstantExpr::getCast(cast(Args[i]), FT->getParamType(i)); - new CallInst(WriteFn, Args, "", IB); + (new CallInst(WriteFn, Args, "", IB))->setTailCall(); } } @@ -225,7 +225,7 @@ bool LowerInvoke::insertCheapEHSupport(Function &F) { writeAbortMessage(UI); // Insert a call to abort() - new CallInst(AbortFn, std::vector(), "", UI); + (new CallInst(AbortFn, std::vector(), "", UI))->setTailCall(); // Insert a return instruction. This really should be a "barrier", as it // is unreachable. @@ -375,7 +375,7 @@ bool LowerInvoke::insertExpensiveEHSupport(Function &F) { writeAbortMessage(RI); // Insert a call to abort() - new CallInst(AbortFn, std::vector(), "", RI); + (new CallInst(AbortFn, std::vector(), "", RI))->setTailCall(); } return Changed; -- cgit v1.2.3-18-g5258