[coro][nfc] Use Load/Store instruction APIs
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Mon, 17 Apr 2023 21:17:04 +0000 (17:17 -0400)
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Tue, 18 Apr 2023 13:07:41 +0000 (09:07 -0400)
commit877280088a5465aa7c1db23708894737091106b5
tree7e689baa896d13af9b3ccf3f7869f1f93e97154b
parentc692e87ab8e7d3c7d8e2365572ffb41f6ec9ac1d
[coro][nfc] Use Load/Store instruction APIs

Instead of hard-coding operand indices, it is cleaner to use the APIs
provided by the Load/Store Inst classes.

Differential Revision: https://reviews.llvm.org/D148571
llvm/lib/Transforms/Coroutines/CoroFrame.cpp