Add trivial switch statement check to use a jump table

This commit is contained in:
gingerBill
2023-07-19 13:58:56 +01:00
parent 73f25ed182
commit 184563bbe1
4 changed files with 115 additions and 20 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ gb_internal cgValue cg_const_value(cgModule *m, cgProcedure *p, Type *type, Exac
return cg_const_nil(p, type);
case ExactValue_Typeid:
return cg_typeid(m, value.value_typeid);
return cg_typeid(p, value.value_typeid);
case ExactValue_Procedure:
{