Fix regression in fat calls (#21446)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Sat, 8 Dec 2018 21:48:06 +0000 (22:48 +0100)
committerGitHub <noreply@github.com>
Sat, 8 Dec 2018 21:48:06 +0000 (22:48 +0100)
This seems to fix an AV in RyuJIT.

src/jit/indirectcalltransformer.cpp

index 40ea625..85d6d22 100644 (file)
@@ -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();
         }