summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jit/compiler.h4
-rw-r--r--src/vm/class.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/jit/compiler.h b/src/jit/compiler.h
index 90aec38..253d96a 100644
--- a/src/jit/compiler.h
+++ b/src/jit/compiler.h
@@ -1619,6 +1619,10 @@ public:
#else
unsigned int regSize = 1;
#endif
+
+ if (numRegs > MAX_ARG_REG_COUNT)
+ NO_WAY("Multireg argument exceeds the maximum length");
+
for (unsigned int regIndex = 1; regIndex < numRegs; regIndex++)
{
argReg = (regNumber)(argReg + regSize);
diff --git a/src/vm/class.cpp b/src/vm/class.cpp
index a24f213..feafc29 100644
--- a/src/vm/class.cpp
+++ b/src/vm/class.cpp
@@ -1201,10 +1201,6 @@ int MethodTable::GetVectorSize()
{
vectorSize = 16;
}
- else if (strcmp(className, "Vector256`1") == 0)
- {
- vectorSize = 32;
- }
else if (strcmp(className, "Vector64`1") == 0)
{
vectorSize = 8;