commit | c7e3f5ac6969e78e878997c13fe25c36ecb64e01 | [log] [tgz] |
---|---|---|
author | Dan Gohman <dan433584@gmail.com> | Wed Jan 06 18:29:35 2016 +0000 |
committer | Dan Gohman <dan433584@gmail.com> | Wed Jan 06 18:29:35 2016 +0000 |
tree | 59c751e9fe13db1ac046703eeb9ad6ead32feb4c | |
parent | 79d91e563fd0543bb7da494ebf3709c0e325099f [diff] |
[WebAssembly] Don't use range-based loop for a list that's being modified The first instruction in a block is what the rend() iterator points to, so if it moves, we need to re-evaluate rend() so that we continue to iterate through the rest of the instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256953 91177308-0d34-0410-b5e6-96231b3b80d8