aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-14 19:21:19 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-14 19:21:19 -0700
commitf0bac8037ca373be4796fcedeb4b40bc40a5e846 (patch)
treee879a88e245b20b33ac8c2d3f76e263680d461b6 /src/Sema.zig
parenta5934edd480909554476df26b38453a0c07ad505 (diff)
downloadzig-f0bac8037ca373be4796fcedeb4b40bc40a5e846.tar.gz
zig-f0bac8037ca373be4796fcedeb4b40bc40a5e846.zip
Sema: fix compilation errors
Commit 8afafa717f5c036595a3a781c63b6be7b478c025 passed CI checks against an older codebase and accumulated silent conflicts.
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 14092eb6f1..99564fd1ea 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -32598,7 +32598,7 @@ fn analyzeSlice(
);
if (try sema.compareScalar(start_value, .neq, end_value, Type.comptime_int)) {
- if (try sema.compareScalar(start_value, .neq, InternPool.Index.zero.toValue(), Type.comptime_int)) {
+ if (try sema.compareScalar(start_value, .neq, Value.zero_comptime_int, Type.comptime_int)) {
const err_msg = try sema.errMsg(block, start_src, bounds_error_message, .{});
try sema.errNote(
block,
@@ -32611,7 +32611,7 @@ fn analyzeSlice(
},
);
return sema.failWithOwnedErrorMsg(block, err_msg);
- } else if (try sema.compareScalar(end_value, .neq, InternPool.Index.one.toValue(), Type.comptime_int)) {
+ } else if (try sema.compareScalar(end_value, .neq, Value.one_comptime_int, Type.comptime_int)) {
const err_msg = try sema.errMsg(block, end_src, bounds_error_message, .{});
try sema.errNote(
block,
@@ -32626,7 +32626,7 @@ fn analyzeSlice(
return sema.failWithOwnedErrorMsg(block, err_msg);
}
} else {
- if (try sema.compareScalar(end_value, .gt, InternPool.Index.one.toValue(), Type.comptime_int)) {
+ if (try sema.compareScalar(end_value, .gt, Value.one_comptime_int, Type.comptime_int)) {
return sema.fail(
block,
end_src,