Jit: fix gtIsRecursiveCall
authorAndy Ayers <andya@microsoft.com>
Tue, 14 Feb 2017 02:38:14 +0000 (18:38 -0800)
committerAndy Ayers <andya@microsoft.com>
Tue, 14 Feb 2017 02:38:14 +0000 (18:38 -0800)
commitd1581da09a840325cf2c95d6903b51fe44d03cf1
tree171495b8e2bb05b7e93daf8238f024b5e319de5d
parent17f0ed4c3ca486037ce7529827232c7994f42a26
Jit: fix gtIsRecursiveCall

When called from the inline compiler, this needs to look at the root
method's handle, not the inlined method's handle.

Fixes dotnet/coreclr#9568.

Commit migrated from https://github.com/dotnet/coreclr/commit/de8cad748bcd1f1a1bc2bcbc9ce5db154023c4a6
src/coreclr/src/jit/compiler.h