aboutsummaryrefslogtreecommitdiff
path: root/src/Value.zig
diff options
context:
space:
mode:
authorMatthew Lugg <mlugg@mlugg.co.uk>2024-09-17 14:34:10 +0100
committerGitHub <noreply@github.com>2024-09-17 14:34:10 +0100
commit41330c96aebddbf26d8fdc0725e7483476175601 (patch)
tree15b108f8983affc4933d60d6b0eaf6e2c2db35ee /src/Value.zig
parent812557bfde3c577b5f00cb556201c71ad5ed6fa4 (diff)
parent4650e5b9fcaa74b724a51458f5cf8952f3c734de (diff)
downloadzig-41330c96aebddbf26d8fdc0725e7483476175601.tar.gz
zig-41330c96aebddbf26d8fdc0725e7483476175601.zip
Merge pull request #21428 from mlugg/compare-to-undef
Sema: return undefined on comparison of runtime value against undefined
Diffstat (limited to 'src/Value.zig')
-rw-r--r--src/Value.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Value.zig b/src/Value.zig
index 575a84f103..d6e533429a 100644
--- a/src/Value.zig
+++ b/src/Value.zig
@@ -191,7 +191,7 @@ pub fn toBigIntAdvanced(
comptime strat: ResolveStrat,
zcu: *Zcu,
tid: strat.Tid(),
-) Zcu.CompileError!BigIntConst {
+) Zcu.SemaError!BigIntConst {
const ip = &zcu.intern_pool;
return switch (val.toIntern()) {
.bool_false => BigIntMutable.init(&space.limbs, 0).toConst(),
@@ -1038,7 +1038,7 @@ pub fn orderAgainstZeroInner(
comptime strat: ResolveStrat,
zcu: *Zcu,
tid: strat.Tid(),
-) Zcu.CompileError!std.math.Order {
+) Zcu.SemaError!std.math.Order {
return switch (lhs.toIntern()) {
.bool_false => .eq,
.bool_true => .gt,