Skip to content

Commit

Permalink
[coro] [async] Don't fail on targets that don't support tail calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogball committed Feb 21, 2024
1 parent 0a518db commit 2c30180
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/Transforms/Coroutines/CoroSplit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1854,9 +1854,7 @@ static void splitAsyncCoroutine(Function &F, coro::Shape &Shape,
FnArgs, Builder);
Builder.CreateRetVoid();
InlineFunctionInfo FnInfo;
auto InlineRes = InlineFunction(*TailCall, FnInfo);
assert(InlineRes.isSuccess() && "Expected inlining to succeed");
(void)InlineRes;
(void)InlineFunction(*TailCall, FnInfo);

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

0 comments on commit 2c30180

Please sign in to comment.