Fix regression: Enum inference with compare operators #2241

This commit is contained in:
Christoffer Lerno
2025-06-25 00:55:29 +02:00
parent faf073885f
commit 2b0fb52f65
3 changed files with 14 additions and 1 deletions

View File

@@ -3328,6 +3328,7 @@ static inline LLVMValueRef llvm_emit_mult_int(GenContext *c, Type *type, LLVMVal
static void llvm_emit_slice_comp(GenContext *c, BEValue *be_value, BEValue *lhs, BEValue *rhs, BinaryOp binary_op)
{
bool want_match = binary_op == BINARYOP_EQ;
Type *array_base_type = type_lowering(lhs->type->array.base);