瀏覽代碼

Merge pull request #4404 from tf2spi/issue-4395-fix

Fixes #4395 by not assuming simd returns val
gingerBill 11 月之前
父節點
當前提交
c5ae7daecd
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;