JIT: fix issue with zero-length stackalloc (#18183)
authorAndy Ayers <andya@microsoft.com>
Sat, 2 Jun 2018 07:25:23 +0000 (00:25 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Jun 2018 07:25:23 +0000 (00:25 -0700)
commitfd895f1c74712edd9dbee4cf265e7a4d39f55f4c
treea52c8ef1665a6d5d523f5b3b6cbfcef5b412a84f
parent183113ec7a16d7bb000e880e5e1ce690aedc7715
JIT: fix issue with zero-length stackalloc (#18183)

Defer calling `setNeedsGSSecurityCookie` until we know for sure that
the jit won't do the zero-length stackalloc optimization.

Closes #18176.
src/jit/importer.cpp
tests/src/JIT/Regression/JitBlue/GitHub_18176/GitHub_18176.il [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_18176/GitHub_18176.ilproj [new file with mode: 0644]