mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Merge pull request #5554 from flysand7/ice-fix
Print the name of missing runtime procedure
This commit is contained in:
@@ -985,6 +985,7 @@ gb_internal lbValue lb_emit_call_internal(lbProcedure *p, lbValue value, lbValue
|
|||||||
gb_internal lbValue lb_lookup_runtime_procedure(lbModule *m, String const &name) {
|
gb_internal lbValue lb_lookup_runtime_procedure(lbModule *m, String const &name) {
|
||||||
AstPackage *pkg = m->info->runtime_package;
|
AstPackage *pkg = m->info->runtime_package;
|
||||||
Entity *e = scope_lookup_current(pkg->scope, name);
|
Entity *e = scope_lookup_current(pkg->scope, name);
|
||||||
|
GB_ASSERT_MSG(e != nullptr, "Runtime procedure not found: %s", name);
|
||||||
return lb_find_procedure_value_from_entity(m, e);
|
return lb_find_procedure_value_from_entity(m, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user