Fixing an assert in `gtGetStructHandleForSIMD` to validate the size of the simdType...
authorTanner Gooding <tagoo@outlook.com>
Sat, 15 Dec 2018 05:53:17 +0000 (21:53 -0800)
committerGitHub <noreply@github.com>
Sat, 15 Dec 2018 05:53:17 +0000 (21:53 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/f3941e439a080a526ecd6216c90328ef900e41ac

src/coreclr/src/jit/compiler.h

index 7e80070..91ea237 100644 (file)
@@ -7650,7 +7650,7 @@ private:
                     unreached();
             }
         }
-        assert(simdType == getSIMDVectorType());
+        assert(emitTypeSize(simdType) <= maxSIMDStructBytes());
         switch (simdBaseType)
         {
             case TYP_FLOAT: