aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_const.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-19 13:58:56 +0100
committergingerBill <bill@gingerbill.org>2023-07-19 13:58:56 +0100
commit184563bbe1f55be17f39cdc13cb784a562419b75 (patch)
tree740b4ddcceb97727b204a76a280968ae3a20564e /src/tilde_const.cpp
parent73f25ed182288eb311abc75cc4b69f1421bfd94a (diff)
Add trivial `switch` statement check to use a jump table
Diffstat (limited to 'src/tilde_const.cpp')
-rw-r--r--src/tilde_const.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tilde_const.cpp b/src/tilde_const.cpp
index 7f6de50c7..a036d928c 100644
--- a/src/tilde_const.cpp
+++ b/src/tilde_const.cpp
@@ -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:
{