[NFC] [Coroutines] Fix incorrect use of coroutine intrinsics
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 4 Jan 2022 03:12:17 +0000 (11:12 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 4 Jan 2022 03:13:48 +0000 (11:13 +0800)
commitea6a3f9f960e52ea39edd5edddf5afad3c11f7a0
treecf621a386a66f8656d3e74ebdeeb18571243a4a4
parent80b3f08eeee2f0e50ab3d9295e9c1d3f251592fb
[NFC] [Coroutines] Fix incorrect use of coroutine intrinsics

The inlined llvm.coro.id should contain the function it refers to.
The modifed test would caused the compiler crash under O2. See
issue52912 for example.
llvm/test/Transforms/Coroutines/coro-spill-corobegin.ll