aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/check_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
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;