[PATCH] D122375: [CoroSplit] Handle argument being the frame pointer
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 31 00:59:48 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroSplit.cpp:878
+ DummyArgs.push_back(
+ new BitCastInst(UndefValue::get(A.getType()), A.getType()));
+ VMap[&A] = DummyArgs.back();
----------------
rjmccall wrote:
> Is it really okay to add an unparented instruction to the value map?
At least I'm not aware of any issues that would cause. Parenting it would be a bit awkward here, as the function is completely empty at this point (doesn't have any basic blocks to insert into).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122375/new/
https://reviews.llvm.org/D122375
More information about the llvm-commits
mailing list