aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-05-29 22:57:42 +0100
committergingerBill <bill@gingerbill.org>2023-05-29 22:57:42 +0100
commit1247d36a12b9a0043fda0f73f164bd7fa5dc3897 (patch)
treeeed76cf9ba176ad5bdd7268d87a5dbfb66d035aa /src/check_decl.cpp
parentf3a463000d4d777cf255bfebda3f51fba4ce8fcc (diff)
Fix #2562 caused by inlining of procedure call
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 84b0d39d8..b651e33e6 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -950,6 +950,7 @@ gb_internal void check_proc_decl(CheckerContext *ctx, Entity *e, DeclInfo *d) {
if (ac.require_declaration) {
e->flags |= EntityFlag_Require;
+ pl->inlining = ProcInlining_no_inline;
}