Explorar o código

Fixes #4395 by not assuming simd returns val

Misomosi hai 11 meses
pai
achega
6ef915c312
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/check_builtin.cpp

+ 1 - 1
src/check_builtin.cpp

@@ -2060,8 +2060,8 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
 		bool ok = check_builtin_simd_operation(c, operand, call, id, type_hint);
 		if (!ok) {
 			operand->type = t_invalid;
+			operand->mode = Addressing_Value;
 		}
-		operand->mode = Addressing_Value;
 		operand->value = {};
 		operand->expr = call;
 		return ok;