mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Remove need for simd.splat
This commit is contained in:
@@ -2713,6 +2713,14 @@ bool check_is_castable_to(CheckerContext *c, Operand *operand, Type *y) {
|
||||
return check_is_castable_to(c, &x, elem_dst);
|
||||
}
|
||||
|
||||
if (is_type_simd_vector(dst)) {
|
||||
Type *elem = base_array_type(dst);
|
||||
if (check_is_castable_to(c, operand, elem)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user