From 48009d27b1513dd21353c108d04a972b03301d14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Strehovsk=C3=BD?= Date: Sat, 8 Dec 2018 22:48:06 +0100 Subject: [PATCH] Fix regression in fat calls (dotnet/coreclr#21446) This seems to fix an AV in RyuJIT. Commit migrated from https://github.com/dotnet/coreclr/commit/759116b3db4b0f6e2b4306062f33b517d532217a --- src/coreclr/src/jit/indirectcalltransformer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/jit/indirectcalltransformer.cpp b/src/coreclr/src/jit/indirectcalltransformer.cpp index 40ea625..85d6d22 100644 --- a/src/coreclr/src/jit/indirectcalltransformer.cpp +++ b/src/coreclr/src/jit/indirectcalltransformer.cpp @@ -172,7 +172,6 @@ private: // virtual void Run() { - origCall = GetCall(stmt); Transform(); } @@ -281,6 +280,7 @@ private: : Transformer(compiler, block, stmt) { doesReturnValue = stmt->gtStmtExpr->OperIs(GT_ASG); + origCall = GetCall(stmt); fptrAddress = origCall->gtCallAddr; pointerType = fptrAddress->TypeGet(); } -- 2.7.4