mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
Fix IR vector arith conv bug
This commit is contained in:
@@ -1820,6 +1820,8 @@ irValue *ir_emit_arith(irProcedure *proc, TokenKind op, irValue *left, irValue *
|
|||||||
ir_emit_comment(proc, str_lit("vector.arith.begin"));
|
ir_emit_comment(proc, str_lit("vector.arith.begin"));
|
||||||
// IMPORTANT TODO(bill): This is very wasteful with regards to stack memory
|
// IMPORTANT TODO(bill): This is very wasteful with regards to stack memory
|
||||||
Type *tl = base_type(t_left);
|
Type *tl = base_type(t_left);
|
||||||
|
left = ir_emit_conv(proc, left, type);
|
||||||
|
right = ir_emit_conv(proc, right, type);
|
||||||
irValue *lhs = ir_address_from_load_or_generate_local(proc, left);
|
irValue *lhs = ir_address_from_load_or_generate_local(proc, left);
|
||||||
irValue *rhs = ir_address_from_load_or_generate_local(proc, right);
|
irValue *rhs = ir_address_from_load_or_generate_local(proc, right);
|
||||||
GB_ASSERT(is_type_vector(type));
|
GB_ASSERT(is_type_vector(type));
|
||||||
|
|||||||
Reference in New Issue
Block a user