Jit: decrement finally nesting level when removing empty trys
authorAndy Ayers <andya@microsoft.com>
Sat, 1 Apr 2017 01:13:32 +0000 (18:13 -0700)
committerAndy Ayers <andya@microsoft.com>
Sat, 1 Apr 2017 01:22:23 +0000 (18:22 -0700)
commitf74e7410d4cb5bbb8ee92ba170ac1714cdb2e30d
treec7d6104179a4d45cfd89d6beee4b3e7bfd0eaaa5
parentd0d69d200c0fd40099ebc6e6a63d7bcb55eb4142
Jit: decrement finally nesting level when removing empty trys

For non-funclet EH models, the GT_END_LFIN statement tracks the
nesting level of the associated finally. When removing a try-finally
with an empty try we need to decrement this level for any try-finallys
nested within the associated finally.

Added a test case with several levels of empty try and nesting.

Closes dotnet/coreclr#10621.

Commit migrated from https://github.com/dotnet/coreclr/commit/b65b40426527f7ee1813ea640ecf1701df66007c
src/coreclr/src/jit/flowgraph.cpp
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_10621/GitHub_10621.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_10621/GitHub_10621.csproj [new file with mode: 0644]