Do not devirtualize indirect calls (#13561)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fri, 25 Aug 2017 16:28:21 +0000 (09:28 -0700)
committerGitHub <noreply@github.com>
Fri, 25 Aug 2017 16:28:21 +0000 (09:28 -0700)
commit06fc72a6205ce5c25631782c543a5e2f5e45b809
tree6f9173cd7b4ddef1db0137629d8f4de6bfaae877
parenta7ffdeca6fed927dbd457293d97b07237db95e82
Do not devirtualize indirect calls (#13561)

I'm seeing the affected code take the `impDevirtualizeCall` code path
with `CT_INDIRECT` calls. `gtCallMethHnd` is a `GenTreePtr` in that case
(it's a union) and passing that as as `CORINFO_METHOD_HANDLE` leads
to bad things.
src/jit/flowgraph.cpp
tests/src/JIT/Regression/JitBlue/GitHub_13561/GitHub_13561.cs [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_13561/GitHub_13561.csproj [new file with mode: 0644]