aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-11 21:49:48 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-11 21:49:48 +0200
commit04807309b7c0f7cb6326d0be1458ebfba90c015d (patch)
treebf42c9d68c48e876cada75ddc2a3d6842e3c2bab /src/check_builtin.cpp
parent23a2821353312748e21394d4f8c2c49b4edef587 (diff)
Allow intrinsics.type_elem_type(simd_vector) to return the element type.
Make `type_elem_type(#simd[4]f32)` return `f32`, same as it would for `[4]f32`.
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index fa3218759..f66a8605c 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -5550,6 +5550,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
case Type_EnumeratedArray: operand->type = bt->EnumeratedArray.elem; break;
case Type_Slice: operand->type = bt->Slice.elem; break;
case Type_DynamicArray: operand->type = bt->DynamicArray.elem; break;
+ case Type_SimdVector: operand->type = bt->SimdVector.elem; break;
}
}
operand->mode = Addressing_Type;