Browse Source

Make `intrinsics.overflow_*` NOT `#optional_ok`

gingerBill 1 year ago
parent
commit
3dfd61dd4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/check_builtin.cpp

+ 2 - 2
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;
 		break;