[coro async] Don't promote allocas to the frame or rewrite swifterror if there are...
authorArnold Schwaighofer <aschwaighofer@apple.com>
Fri, 12 Feb 2021 18:27:31 +0000 (10:27 -0800)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 16 Feb 2021 17:05:38 +0000 (09:05 -0800)
commit627cfd4394b0c4677c8a33338d92bd92101b8ee1
treefa3decd88bc1611302f6bed1bd291a11373d7e7d
parent8260232cdd138d1357d308e43c33f0f16044f44c
[coro async] Don't promote allocas to the frame or rewrite  swifterror if there are no suspend points

Also don't call function to update the call graph if there are no
clones. The function will fail.

rdar://74277860

Differential Revision: https://reviews.llvm.org/D96620
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/test/Transforms/Coroutines/coro-async.ll