aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-11 22:51:28 +0200
committerGitHub <noreply@github.com>2025-04-11 22:51:28 +0200
commit29b03adab1a36d67dca2fb03db24b8a1d693f075 (patch)
treeedd781a7680f8cff13844768a903b7db706b77c4 /src
parent23a2821353312748e21394d4f8c2c49b4edef587 (diff)
parent41d4ddbc5e8f57b8b901ce09fc5eab627ba440c2 (diff)
Merge pull request #5030 from Kelimion/type_elem_type
Allow intrinsics.type_elem_type(simd_vector) to return the element type.
Diffstat (limited to 'src')
-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;