aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_const.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tilde_const.cpp')
-rw-r--r--src/tilde_const.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tilde_const.cpp b/src/tilde_const.cpp
index 75b66567e..7f6de50c7 100644
--- a/src/tilde_const.cpp
+++ b/src/tilde_const.cpp
@@ -123,3 +123,6 @@ gb_internal cgValue cg_const_value(cgProcedure *p, Type *type, ExactValue const
gb_internal cgValue cg_const_int(cgProcedure *p, Type *type, i64 i) {
return cg_const_value(p, type, exact_value_i64(i));
}
+gb_internal cgValue cg_const_bool(cgProcedure *p, Type *type, bool v) {
+ return cg_value(tb_inst_bool(p->func, v), type);
+}