mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 19:30:06 +00:00
Remove useless check
This commit is contained in:
@@ -2813,11 +2813,6 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
|
|||||||
|
|
||||||
*type = alloc_type_simd_vector(count, elem, generic_type);
|
*type = alloc_type_simd_vector(count, elem, generic_type);
|
||||||
|
|
||||||
if (is_arch_wasm()) {
|
|
||||||
if (type_size_of(*type) != 16) {
|
|
||||||
error(at->count, "wasm based targets are limited to 128-bit types");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (count > SIMD_ELEMENT_COUNT_MAX) {
|
if (count > SIMD_ELEMENT_COUNT_MAX) {
|
||||||
error(at->count, "#simd support a maximum element count of %d, got %lld", SIMD_ELEMENT_COUNT_MAX, cast(long long)count);
|
error(at->count, "#simd support a maximum element count of %d, got %lld", SIMD_ELEMENT_COUNT_MAX, cast(long long)count);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user