Fix remove in list (dotnet/coreclr#12497)
authorKyungwoo Lee <kyulee@microsoft.com>
Wed, 28 Jun 2017 15:00:27 +0000 (08:00 -0700)
committerDan Moseley <danmose@microsoft.com>
Wed, 28 Jun 2017 15:00:27 +0000 (08:00 -0700)
commitfa9b4a686a65e4e027f65a15280fc7feee0f0698
tree9645e1ad0fcee1bfb60bb7e29299baacc30ca212
parentdd610332ea724e4ca01fa9eb732474e05976da5f
Fix remove in list (dotnet/coreclr#12497)

`remove` uses `erase` to delete the entry in list.
Since `erase` returns the next iterator, the iterator shouldn't be increased
when the entry is found and deleted.

Commit migrated from https://github.com/dotnet/coreclr/commit/68673ed19e7c5e849258ef4be90ec9577226ee64
src/coreclr/src/jit/jitstd/list.h