diff options
| author | gingerBill <bill@gingerbill.org> | 2019-07-28 22:58:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-07-28 22:58:56 +0100 |
| commit | 2c5c8192f8fcb40fdef183c25a8d799f23f23439 (patch) | |
| tree | bc2baa8d13741dd8f7e56d5f770c091e6b9beaf2 /src/ir.cpp | |
| parent | 162c87b1b810770f75920a51682a8f6b63adeba4 (diff) | |
Fix parsing for procedure literals expression statements; improve assert performance; other minor fixes
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 1105eac29..0a5dc7528 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -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)); |