]> granicus.if.org Git - llvm/commit
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)
commit478d69d99ba4766fe8fe8f2976c99e855dfe59ed
tree78926dcc71f5fc03d91aeb287be6eb84b0b8b052
parent196b9fb9510a776f95f6c8366c4fda779789112c
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368795 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Coroutines/CoroFrame.cpp
lib/Transforms/Coroutines/CoroInternal.h
lib/Transforms/Coroutines/CoroSplit.cpp
test/Transforms/Coroutines/coro-swifterror.ll [new file with mode: 0644]