aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2023-10-13 16:55:56 +0300
committerVeikka Tuominen <git@vexu.eu>2023-10-13 16:58:05 +0300
commitf09313dbc46ae9dc6165cbfb3d0b18760db55752 (patch)
treed3ce1f51a82bb51cdeecae9b5599962929cb3dc6 /src/Sema.zig
parent027aabf4977d0362e908d9ef732aaa929605d563 (diff)
downloadzig-f09313dbc46ae9dc6165cbfb3d0b18760db55752.tar.gz
zig-f09313dbc46ae9dc6165cbfb3d0b18760db55752.zip
Sema: fix `@Vector` source locations being swapped
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index c9dacd1185..3e31892395 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -8229,8 +8229,8 @@ fn zirVectorElemType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileEr
fn zirVectorType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref {
const mod = sema.mod;
const inst_data = sema.code.instructions.items(.data)[inst].pl_node;
- const elem_type_src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = inst_data.src_node };
- const len_src: LazySrcLoc = .{ .node_offset_builtin_call_arg1 = inst_data.src_node };
+ const len_src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = inst_data.src_node };
+ const elem_type_src: LazySrcLoc = .{ .node_offset_builtin_call_arg1 = inst_data.src_node };
const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data;
const len: u32 = @intCast(try sema.resolveInt(block, len_src, extra.lhs, Type.u32, .{
.needed_comptime_reason = "vector length must be comptime-known",