aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-10-13 16:04:47 -0700
committerGitHub <noreply@github.com>2023-10-13 16:04:47 -0700
commit2d7d037c4855681c8a27d98f1f29a63badb55658 (patch)
tree0bed078056fef2d5d169cfdf5823182c89bd4271 /src/Sema.zig
parent7aa85691b08262b4fd63f9307e4d9cd41230e08c (diff)
parentc919e9a2806aed62f8fe7cb23da4aa14808daea8 (diff)
downloadzig-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.zig4
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",