diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-10-13 16:04:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-13 16:04:47 -0700 |
| commit | 2d7d037c4855681c8a27d98f1f29a63badb55658 (patch) | |
| tree | 0bed078056fef2d5d169cfdf5823182c89bd4271 /src/Sema.zig | |
| parent | 7aa85691b08262b4fd63f9307e4d9cd41230e08c (diff) | |
| parent | c919e9a2806aed62f8fe7cb23da4aa14808daea8 (diff) | |
| download | zig-2d7d037c4855681c8a27d98f1f29a63badb55658.tar.gz zig-2d7d037c4855681c8a27d98f1f29a63badb55658.zip | |
Merge pull request #17510 from Vexu/vector
Fix `@Vector` source locations being swapped
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 0f3ae46c1b..f25457a21d 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -8235,8 +8235,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", |
