From 6ef915c312f210e5dac9559e863e58886989a1da Mon Sep 17 00:00:00 2001 From: Misomosi Date: Sun, 20 Oct 2024 22:51:39 -0400 Subject: Fixes #4395 by not assuming simd returns val --- src/check_builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_builtin.cpp') diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index ab18123dd..09e558500 100644 --- a/src/check_builtin.cpp +++ b/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; -- cgit v1.2.3