Copy additional GenTreeBoundsChk fields in gtCloneExpr
authorBruce Forstall <brucefo@microsoft.com>
Thu, 10 Aug 2017 01:18:31 +0000 (18:18 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Thu, 10 Aug 2017 01:18:31 +0000 (18:18 -0700)
commit88896f8ea45042141950f254631bcd307ae8706d
tree0776a5906c5afc9a748f873ba8dbd2522f7d889d
parent94d4c5e0fc79d740f37a06d2a28d315b1682c0ce
Copy additional GenTreeBoundsChk fields in gtCloneExpr

We were previously losing the gtStkDepth field, which led to
an assert with the STRESS_CLONE_EXPR stress mode with array
bounds checks in function argument lists that had already
pushed stack arguments.

Commit migrated from https://github.com/dotnet/coreclr/commit/b4992226b5c499e9cff1cf2b6f8f60e2c06c7351
src/coreclr/src/jit/gentree.cpp