aboutsummaryrefslogtreecommitdiff
path: root/src/eval.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-04-11 22:41:26 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-04-12 09:35:33 -0700
commitaa89fd3b3e4522fe9199049a4fcc6bdc69f4bfde (patch)
treed93fec6d41037ce8c355f41a7798a2e87c984fd7 /src/eval.hpp
parentfa605485ea94ae9a59c8c1c0d66ee263e0bfa722 (diff)
downloadzig-aa89fd3b3e4522fe9199049a4fcc6bdc69f4bfde.tar.gz
zig-aa89fd3b3e4522fe9199049a4fcc6bdc69f4bfde.zip
eval: ability to eval more things
Diffstat (limited to 'src/eval.hpp')
-rw-r--r--src/eval.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eval.hpp b/src/eval.hpp
index 4a8d294502..f8266228fb 100644
--- a/src/eval.hpp
+++ b/src/eval.hpp
@@ -19,6 +19,8 @@ void eval_const_expr_bin_op(ConstExprValue *op1_val, TypeTableEntry *op1_type,
void eval_const_expr_implicit_cast(CastOp cast_op,
ConstExprValue *other_val, TypeTableEntry *other_type,
- ConstExprValue *const_val);
+ ConstExprValue *const_val, TypeTableEntry *new_type);
+
+void eval_min_max_value(CodeGen *g, TypeTableEntry *type_entry, ConstExprValue *const_val, bool is_max);
#endif