diff options
| author | gingerBill <bill@gingerbill.org> | 2019-12-15 11:30:09 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-12-15 11:30:09 +0000 |
| commit | 58d4d424c6db749c10d723844ec5a847243bee39 (patch) | |
| tree | 4f89d391cc839313d5aec976448991d8b6662914 /src/check_type.cpp | |
| parent | 89ccb5b99f39cdb673435e37cea1f3db8a7224a6 (diff) | |
Replace `#vector[N]T` with `#simd[N]T` to reduce confusion #498
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index a1ee1d154..c79f09849 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -3224,10 +3224,10 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t String name = at->tag->BasicDirective.name; if (name == "soa") { *type = make_soa_struct_fixed(ctx, e, at->elem, elem, count, generic_type); - } else if (name == "vector") { + } else if (name == "simd") { if (!is_type_valid_vector_elem(elem)) { gbString str = type_to_string(elem); - error(at->elem, "Invalid element type for 'intrinsics.vector', expected an integer or float with no specific endianness, got '%s'", str); + error(at->elem, "Invalid element type for 'intrinsics.simd_vector', expected an integer or float with no specific endianness, got '%s'", str); gb_string_free(str); *type = alloc_type_array(elem, count, generic_type); goto array_end; |