Use the correct class handle for fat call temporary (dotnet/coreclr#9893)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 2 Mar 2017 06:15:34 +0000 (22:15 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 06:15:34 +0000 (22:15 -0800)
commit8169e76df6f490cf40999c9ae51531c011cf3a63
treedce24e771fba38eff917fb9f2aa4840abdf6ecf4
parent3d2ae11d7744fe623f9f3b93822748bd78c61843
Use the correct class handle for fat call temporary (dotnet/coreclr#9893)

`clsHnd` is the class handle of the type that owns the method for
`opcode != CEE_CALLI`. We need the class handle for the method's
return type though.

This is ending up with RyuJIT asking weird questions over JitInterface
(`getClassGClayout` of a reference type).

Also removing a line that was added in dotnet/coreclr#9191 to support the old code.

Commit migrated from https://github.com/dotnet/coreclr/commit/58010850217463943ba5910ddc8303b9d36f709e
src/coreclr/src/jit/importer.cpp