Skip to content

Commit 2c30180

Browse files
author
Mogball
committed
[coro] [async] Don't fail on targets that don't support tail calls
1 parent 0a518db commit 2c30180

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Coroutines/CoroSplit.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,9 +1854,7 @@ static void splitAsyncCoroutine(Function &F, coro::Shape &Shape,
18541854
FnArgs, Builder);
18551855
Builder.CreateRetVoid();
18561856
InlineFunctionInfo FnInfo;
1857-
auto InlineRes = InlineFunction(*TailCall, FnInfo);
1858-
assert(InlineRes.isSuccess() && "Expected inlining to succeed");
1859-
(void)InlineRes;
1857+
(void)InlineFunction(*TailCall, FnInfo);
18601858

18611859
// Replace the lvm.coro.async.resume intrisic call.
18621860
replaceAsyncResumeFunction(Suspend, Continuation);

0 commit comments

Comments
 (0)