JIT: tolerate nonzero constant byrefs in impCheckForNullPointer (#17042)
authorAndy Ayers <andya@microsoft.com>
Tue, 20 Mar 2018 00:28:51 +0000 (17:28 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Mar 2018 00:28:51 +0000 (17:28 -0700)
commit58f8744af4fb3494ca8cc305c2d1a0eb3fb9d35a
tree3de2aa13f58f3bce63b7bbe51122ec5cfbcaeab5
parent20f7c219e79f55ab8062282c6cb1d89310f365ea
JIT: tolerate nonzero constant byrefs in impCheckForNullPointer (#17042)

With the advent of #16966 we may now see constant nonzero byrefs from
things like RVA statics. Tolerate these in `impCheckForNullPointer`.

Note previously we'd type these as ints/longs and so bail out of
`impCheckForNullPointer` after the first check.

Closes #17008.
src/jit/compiler.hpp
tests/src/JIT/Directed/RVAInit/oddsize.ilproj