From 3dfd61dd4f1aec7525a8d6820c9c977f6a3ed14e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 10 Apr 2024 12:32:26 +0100 Subject: Make `intrinsics.overflow_*` NOT `#optional_ok` --- src/check_builtin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_builtin.cpp') diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index d8fad487b..c3c217ec7 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -4089,8 +4089,8 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As } } - operand->mode = Addressing_OptionalOk; - operand->type = default_type(x.type); + operand->mode = Addressing_Value; + operand->type = make_optional_ok_type(default_type(x.type)); } break; -- cgit v1.2.3