diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-23 09:03:50 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-23 09:03:50 -0400 |
| commit | d343f54d6d35d304ac16f4335f2d5c5d235597d9 (patch) | |
| tree | 69db0772abd6eba2f14c67e558110ecad0e0b527 /src/check_decl.cpp | |
| parent | 1633d9b69a38634b8f70a4bb16bb58e10c41f455 (diff) | |
Fix spurious failure to compile procedures marked `@instrumentation_enter`
The type `Source_Code_Location` may not be available yet, which causes
the compiler to not recognize the procedure type correctly.
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index c696fc4c1..7458f23d5 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -1334,6 +1334,7 @@ gb_internal void check_proc_decl(CheckerContext *ctx, Entity *e, DeclInfo *d) { has_instrumentation = false; e->flags |= EntityFlag_Require; } else if (ac.instrumentation_enter) { + init_core_source_code_location(ctx->checker); if (!is_valid_instrumentation_call(e->type)) { init_core_source_code_location(ctx->checker); gbString s = type_to_string(e->type); |