llvm-project/llvm/lib/Transforms/Coroutines
Xun Li def86413d4 [Coroutines] Do not add alloca to the frame if the size is 0
This patch is to address https://bugs.llvm.org/show_bug.cgi?id=49916.
When the size of an alloca is 0, it will trigger an assertion in OptimizedStructLayout when being added to the frame.
Fix it by not adding it at all. We return index 0 (beginning of the frame) for all 0-sized allocas.

Differential Revision: https://reviews.llvm.org/D101841
2021-05-04 12:55:40 -07:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
CoroCleanup.cpp Add @llvm.coro.async.size.replace intrinsic. 2021-02-23 06:43:52 -08:00
CoroEarly.cpp Revert "[Coroutines] Set presplit attribute in Clang instead of CoroEarly pass" 2021-04-18 17:22:28 -07:00
CoroElide.cpp [Coroutine] Collect CoroBegin if all of terminators are dominated by one coro.destroy 2021-04-22 11:21:37 +08:00
CoroFrame.cpp [Coroutines] Do not add alloca to the frame if the size is 0 2021-05-04 12:55:40 -07:00
CoroInstr.h [coro async] Allow a coro.suspend.async to specify which argument is the context argument 2021-03-03 08:27:37 -08:00
CoroInternal.h [Coroutine] [Debug] Insert dbg.declare to entry.resume to print alloca in the coroutine frame under O2 2021-03-31 10:37:06 +08:00
CoroSplit.cpp Update the linkage name of coro-split functions in the debug info. 2021-04-09 09:50:56 -07:00
Coroutines.cpp Add @llvm.coro.async.size.replace intrinsic. 2021-02-23 06:43:52 -08:00