diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-05-26 08:46:03 -0700 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2021-05-26 11:43:11 -0700 |
commit | 5bfe06ad3590d5aeb14c2fc3fae729abc6412cb3 (patch) | |
tree | b299e546f216eb9e7646f923bf912ee55bad687b /llvm/lib/Target/WebAssembly/Utils/WebAssemblyUtilities.cpp | |
parent | 5e2facb922840bfd03eb116eaeead039df021275 (diff) | |
download | llvm-5bfe06ad3590d5aeb14c2fc3fae729abc6412cb3.zip llvm-5bfe06ad3590d5aeb14c2fc3fae729abc6412cb3.tar.gz llvm-5bfe06ad3590d5aeb14c2fc3fae729abc6412cb3.tar.bz2 |
[SimplifyCFG] Use make_early_inc_range() while deleting instructions
We are deleting `phi` nodes within the for loop, so this makes sure we
increment the iterator before we delete the instruction pointed by the
iterator.
This started to break in
https://github.com/llvm/llvm-project/commit/a0be08164622bf938855ff5d19dd8e9d0c96b9b3.
Reviewed By: dschuff, lebedev.ri
Differential Revision: https://reviews.llvm.org/D103181
Diffstat (limited to 'llvm/lib/Target/WebAssembly/Utils/WebAssemblyUtilities.cpp')
0 files changed, 0 insertions, 0 deletions