aboutsummaryrefslogtreecommitdiff
path: root/src/eval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.cpp')
-rw-r--r--src/eval.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval.cpp b/src/eval.cpp
index 0d4bf6863c..c900882d90 100644
--- a/src/eval.cpp
+++ b/src/eval.cpp
@@ -431,6 +431,8 @@ void eval_min_max_value(CodeGen *g, TypeTableEntry *type_entry, ConstExprValue *
} else if (type_entry->id == TypeTableEntryIdBool) {
const_val->special = ConstValSpecialStatic;
const_val->data.x_bool = is_max;
+ } else if (type_entry->id == TypeTableEntryIdVoid) {
+ // nothing to do
} else {
zig_unreachable();
}