JIT: Fix bug in finally cloning caused by unsound callfinally reordering (#18348)
authorAndy Ayers <andya@microsoft.com>
Fri, 8 Jun 2018 06:16:56 +0000 (23:16 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Jun 2018 06:16:56 +0000 (23:16 -0700)
commit311322beb96c5475fd7030fcd2f6e7ff14918853
tree3ddcf63f4cd44460b261170800d1d32967a02faf
parent1b2040c880733c3d7735f9c9533e5a66fde8e13c
JIT: Fix bug in finally cloning caused by unsound callfinally reordering (#18348)

We need to make sure that if we reorder a callfinally during finally cloning
that the callfinally is actually the one being targeted by the last block in
the try range.

Closes #18332. Linked issue has some more detailed notes.
src/jit/flowgraph.cpp
tests/src/JIT/Regression/JitBlue/GitHub_18332/GitHub_18332.cs [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_18332/GitHub_18332.csproj [new file with mode: 0644]