mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
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.
This commit is contained in:
@@ -1334,6 +1334,7 @@ gb_internal void check_proc_decl(CheckerContext *ctx, Entity *e, DeclInfo *d) {
|
|||||||
has_instrumentation = false;
|
has_instrumentation = false;
|
||||||
e->flags |= EntityFlag_Require;
|
e->flags |= EntityFlag_Require;
|
||||||
} else if (ac.instrumentation_enter) {
|
} else if (ac.instrumentation_enter) {
|
||||||
|
init_core_source_code_location(ctx->checker);
|
||||||
if (!is_valid_instrumentation_call(e->type)) {
|
if (!is_valid_instrumentation_call(e->type)) {
|
||||||
init_core_source_code_location(ctx->checker);
|
init_core_source_code_location(ctx->checker);
|
||||||
gbString s = type_to_string(e->type);
|
gbString s = type_to_string(e->type);
|
||||||
|
|||||||
Reference in New Issue
Block a user