Use CORINFO_CALLCONV to check for unmanaged calls (dotnet/coreclr#9697)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Wed, 22 Feb 2017 00:37:04 +0000 (16:37 -0800)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2017 00:37:04 +0000 (16:37 -0800)
commitc8d893a875fda8a37eadf16c690dbeebf3262ead
tree6567159567a6b03e2deac6b8ded0bc5868c27861
parente2d74a29c6977b91ef7df010fdad5c8179be8e4f
Use CORINFO_CALLCONV to check for unmanaged calls (dotnet/coreclr#9697)

`GTF_CALL_UNMANAGED` is a member of the wrong enum and it's something
that would be set on `call->gtFlags` except that at this point it isn't.
Check against the actual unmanaged calling conventions.

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