Fix SIMD case on arm64 linux with zapDisabled. (#33712)
authorSergey Andreenko <seandree@microsoft.com>
Thu, 19 Mar 2020 01:57:51 +0000 (18:57 -0700)
committerGitHub <noreply@github.com>
Thu, 19 Mar 2020 01:57:51 +0000 (18:57 -0700)
src/coreclr/src/jit/morph.cpp

index 4af4823..4f3a141 100644 (file)
@@ -7527,11 +7527,11 @@ GenTree* Compiler::fgMorphPotentialTailCall(GenTreeCall* call)
             {
                 callType = TYP_I_IMPL;
             }
-            else if (howToReturnStruct == SPK_ByValueAsHfa)
+            else if (howToReturnStruct == SPK_ByValueAsHfa || varTypeIsSIMD(callType))
             {
                 callType = TYP_FLOAT;
             }
-            assert((callType != TYP_UNKNOWN) && (callType != TYP_STRUCT));
+            assert((callType != TYP_UNKNOWN) && !varTypeIsStruct(callType));
         }
         else
         {