Fix tailCall check for CallI. (#39621)
authorSergey Andreenko <seandree@microsoft.com>
Tue, 21 Jul 2020 01:35:31 +0000 (18:35 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2020 01:35:31 +0000 (18:35 -0700)
src/coreclr/src/jit/importer.cpp

index e3efd08dbe309e1ffd58c1b8eefecdfb81bf76ec..e1443b849ad347f7b0767c05c6dc5d6e5667c3e8 100644 (file)
@@ -8577,7 +8577,7 @@ DONE:
 
         if (canTailCall &&
             !impTailCallRetTypeCompatible(info.compRetType, info.compMethodInfo->args.retTypeClass, callRetTyp,
-                                          callInfo->sig.retTypeClass))
+                                          sig->retTypeClass))
         {
             canTailCall             = false;
             szCanTailCallFailReason = "Return types are not tail call compatible";