aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2021-04-19 02:13:29 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2021-04-19 02:13:29 +0200
commitc708f649ece3859306765964b22eba6302a1cd34 (patch)
tree486743fccc01b2f9e15ac5c2e471f046047f922b /src/check_decl.cpp
parentf7b8b3a3400a28c4f35a6e10885bb0f0142441c8 (diff)
parentae04af4e4ed4ecd521e1a915edd5b8637b1f40ce (diff)
Merge remote-tracking branch 'upstream/master' into prototype-fmt
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 5e52597b9..51c0b6ee5 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -690,6 +690,10 @@ void check_proc_decl(CheckerContext *ctx, Entity *e, DeclInfo *d) {
if (ac.test) {
e->flags |= EntityFlag_Test;
}
+ if (ac.set_cold) {
+ e->flags |= EntityFlag_Cold;
+ }
+
e->Procedure.is_export = ac.is_export;
e->deprecated_message = ac.deprecated_message;
ac.link_name = handle_link_name(ctx, e->token, ac.link_name, ac.link_prefix);