Fix issue #13161.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 9 Aug 2017 23:54:43 +0000 (16:54 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Wed, 9 Aug 2017 23:54:43 +0000 (16:54 -0700)
commit1956b6974ad5e9356b094499eac34ed506a4a4ba
treeff4835525f98e915177bfb16481ec29d0e560008
parent95b075fbdaee0c98b1527530787df708607063ae
Fix issue #13161.

This issue was a crash when calling R2R-compiled code from JITted code
on Windows/ARM32. The caller had a live value in `r4` that was scribbled
over by the callee. This change adds the necessary call to
`regSet.rsTrackRegTrash` which ensures that `r4` is saved/restored in
the prolog/epilog when it is used for R2R indirect calls.
src/jit/codegenlegacy.cpp
tests/arm/Tests.lst