mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 07:13:14 +00:00
Fix a race condition when produced anonymous procedure literals with -use-separate-modules
This commit is contained in:
@@ -473,6 +473,7 @@ gb_internal lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, bo
|
||||
if (value.kind == ExactValue_Procedure) {
|
||||
lbValue res = {};
|
||||
Ast *expr = unparen_expr(value.value_procedure);
|
||||
GB_ASSERT(expr != nullptr);
|
||||
if (expr->kind == Ast_ProcLit) {
|
||||
res = lb_generate_anonymous_proc_lit(m, str_lit("_proclit"), expr);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user