diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/zig/AstGen.zig | 4 | ||||
| -rw-r--r-- | lib/std/zig/Zir.zig | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/std/zig/AstGen.zig b/lib/std/zig/AstGen.zig index cff9b4e37a..7e11f8d44b 100644 --- a/lib/std/zig/AstGen.zig +++ b/lib/std/zig/AstGen.zig @@ -2716,7 +2716,7 @@ fn addEnsureResult(gz: *GenZir, maybe_unused_result: Zir.Inst.Ref, statement: As .array_type_sentinel, .elem_type, .indexable_ptr_elem_type, - .vector_elem_type, + .vec_arr_elem_type, .vector_type, .indexable_ptr_len, .anyframe_type, @@ -9529,7 +9529,7 @@ fn builtinCall( .splat => { const result_type = try ri.rl.resultTypeForCast(gz, node, builtin_name); - const elem_type = try gz.addUnNode(.vector_elem_type, result_type, node); + const elem_type = try gz.addUnNode(.vec_arr_elem_type, result_type, node); const scalar = try expr(gz, scope, .{ .rl = .{ .ty = elem_type } }, params[0]); const result = try gz.addPlNode(.splat, node, Zir.Inst.Bin{ .lhs = result_type, diff --git a/lib/std/zig/Zir.zig b/lib/std/zig/Zir.zig index a644bd69e4..9c76f72663 100644 --- a/lib/std/zig/Zir.zig +++ b/lib/std/zig/Zir.zig @@ -247,9 +247,9 @@ pub const Inst = struct { /// element type. Emits a compile error if the type is not an indexable pointer. /// Uses the `un_node` field. indexable_ptr_elem_type, - /// Given a vector type, returns its element type. + /// Given a vector or array type, returns its element type. /// Uses the `un_node` field. - vector_elem_type, + vec_arr_elem_type, /// Given a pointer to an indexable object, returns the len property. This is /// used by for loops. This instruction also emits a for-loop specific compile /// error if the indexable object is not indexable. @@ -1065,7 +1065,7 @@ pub const Inst = struct { .vector_type, .elem_type, .indexable_ptr_elem_type, - .vector_elem_type, + .vec_arr_elem_type, .indexable_ptr_len, .anyframe_type, .as_node, @@ -1375,7 +1375,7 @@ pub const Inst = struct { .vector_type, .elem_type, .indexable_ptr_elem_type, - .vector_elem_type, + .vec_arr_elem_type, .indexable_ptr_len, .anyframe_type, .as_node, @@ -1607,7 +1607,7 @@ pub const Inst = struct { .vector_type = .pl_node, .elem_type = .un_node, .indexable_ptr_elem_type = .un_node, - .vector_elem_type = .un_node, + .vec_arr_elem_type = .un_node, .indexable_ptr_len = .un_node, .anyframe_type = .un_node, .as_node = .pl_node, @@ -3781,7 +3781,7 @@ fn findDeclsInner( .vector_type, .elem_type, .indexable_ptr_elem_type, - .vector_elem_type, + .vec_arr_elem_type, .indexable_ptr_len, .anyframe_type, .as_node, |
