Support swifterror in coroutine lowering.
authorJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:54:05 +0000 (03:54 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:54:05 +0000 (03:54 +0000)
commit2133feec933ea7311ee74ee39a5e6a0bcfaef822
treef4f4d1898d9d66e6bfcad098aea6372164f5a47d
parentdc4668e5cf91029f3044114903c286c10e1ffdea
Support swifterror in coroutine lowering.

The support for swifterror allocas should work in all lowerings.
The support for swifterror arguments only really works in a lowering
with prototypes where you can ensure that the prototype also has a
swifterror argument; I'm not really sure how it could possibly be
made to work in the switch lowering.

llvm-svn: 368795
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
llvm/lib/Transforms/Coroutines/CoroInternal.h
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/test/Transforms/Coroutines/coro-swifterror.ll [new file with mode: 0644]