JIT: Fix operand evaluation order for GT_INDEX_ADDR (#20047)
authorAndy Ayers <andya@microsoft.com>
Thu, 20 Sep 2018 22:02:58 +0000 (15:02 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Sep 2018 22:02:58 +0000 (15:02 -0700)
commite30f187cda3767e1c50b870864de8d0eb5f8582a
tree0f892e999ac2a2bba32b90a95636da4cbab63062
parent4ca5cd260a1c04f74961faccfad3200fe865a249
JIT: Fix operand evaluation order for GT_INDEX_ADDR (#20047)

We need to evaluate the array operand first, and it's op1. So evaluate
in that order, and don't allow reversal.

Closes #20040.
src/jit/flowgraph.cpp
src/jit/gentree.h
tests/src/JIT/Regression/JitBlue/GitHub_20040/GitHub_20040.cs [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_20040/GitHub_20040.csproj [new file with mode: 0644]