In coro.retcon lowering, don't explode if the optimizer messes around with the linkag...
authorJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:53:52 +0000 (03:53 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:53:52 +0000 (03:53 +0000)
commitd47801e7182a64c52891b34e749e35c396a002f8
tree5c983de8fc57575529aae00f73ab26ced6b82caa
parentac404832760a5ed71bc40083bdd52935524136c1
In coro.retcon lowering, don't explode if the optimizer messes around with the linkage of the prototype or the exact types of the yielded values.

llvm-svn: 368793
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/lib/Transforms/Coroutines/Coroutines.cpp
llvm/test/Transforms/Coroutines/coro-retcon.ll