mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-27 16:53:55 +00:00
Fix parsing for procedure literals expression statements; improve assert performance; other minor fixes
This commit is contained in:
@@ -3053,7 +3053,7 @@ irValue *ir_emit_call(irProcedure *p, irValue *value, Array<irValue *> args, Pro
|
||||
if (value->kind == irValue_Proc) {
|
||||
irProcedure *the_proc = &value->Proc;
|
||||
Entity *e = the_proc->entity;
|
||||
if (entity_has_deferred_procedure(e)) {
|
||||
if (e != nullptr && entity_has_deferred_procedure(e)) {
|
||||
DeferredProcedureKind kind = e->Procedure.deferred_procedure.kind;
|
||||
Entity *deferred_entity = e->Procedure.deferred_procedure.entity;
|
||||
irValue **deferred_found = map_get(&p->module->values, hash_entity(deferred_entity));
|
||||
|
||||
@@ -3759,6 +3759,7 @@ Ast *parse_stmt(AstFile *f) {
|
||||
switch (token.kind) {
|
||||
// Operands
|
||||
case Token_context: // Also allows for `context =`
|
||||
case Token_proc:
|
||||
case Token_inline:
|
||||
case Token_no_inline:
|
||||
case Token_Ident:
|
||||
|
||||
Reference in New Issue
Block a user