mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix #4949
This commit is contained in:
@@ -645,6 +645,13 @@ gb_internal bool check_builtin_simd_operation(CheckerContext *c, Operand *operan
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!are_types_identical(x.type, y.type)) {
|
||||||
|
gbString tx = type_to_string(x.type);
|
||||||
|
gbString ty = type_to_string(y.type);
|
||||||
|
error(call, "Mismatched types to '%.*s', '%s' vs '%s'", LIT(builtin_name), tx, ty);
|
||||||
|
gb_string_free(ty);
|
||||||
|
gb_string_free(tx);
|
||||||
|
}
|
||||||
|
|
||||||
Type *vt = base_type(x.type);
|
Type *vt = base_type(x.type);
|
||||||
GB_ASSERT(vt->kind == Type_SimdVector);
|
GB_ASSERT(vt->kind == Type_SimdVector);
|
||||||
|
|||||||
Reference in New Issue
Block a user