check that VM set pAddr == nullptr (#15003)
authorSergey Andreenko <seandree@microsoft.com>
Mon, 13 Nov 2017 18:27:26 +0000 (10:27 -0800)
committerGitHub <noreply@github.com>
Mon, 13 Nov 2017 18:27:26 +0000 (10:27 -0800)
When VM returns addr != nullptr from getHelperFtn, it must set pAddr to nullptr.

src/jit/lower.cpp

index b8f0403..5661741 100644 (file)
@@ -2905,6 +2905,7 @@ GenTree* Lowering::LowerDirectCall(GenTreeCall* call)
 
         if (addr != nullptr)
         {
+            assert(pAddr == nullptr);
             accessType = IAT_VALUE;
         }
         else