authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-10-13 16:55:56+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-10-13 16:58:05+03:00
logf09313dbc46ae9dc6165cbfb3d0b18760db55752
treed3ce1f51a82bb51cdeecae9b5599962929cb3dc6
parent027aabf4977d0362e908d9ef732aaa929605d563

Sema: fix `@Vector` source locations being swapped


1 files changed, 2 insertions(+), 2 deletions(-)

src/Sema.zig+2-2
......@@ -8229,8 +8229,8 @@ fn zirVectorElemType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileEr
82298229fn zirVectorType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref {
82308230 const mod = sema.mod;
82318231 const inst_data = sema.code.instructions.items(.data)[inst].pl_node;
8232 const elem_type_src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = inst_data.src_node };
8233 const len_src: LazySrcLoc = .{ .node_offset_builtin_call_arg1 = inst_data.src_node };
8232 const len_src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = inst_data.src_node };
8233 const elem_type_src: LazySrcLoc = .{ .node_offset_builtin_call_arg1 = inst_data.src_node };
82348234 const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data;
82358235 const len: u32 = @intCast(try sema.resolveInt(block, len_src, extra.lhs, Type.u32, .{
82368236 .needed_comptime_reason = "vector length must be comptime-known",