aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-08-07 20:07:55 +0200
committerGitHub <noreply@github.com>2025-08-07 20:07:55 +0200
commit3194fda8f3b01affc086eec4102d924277fe9f43 (patch)
treeea36bc7abf77534c61fd0e9ed20f965da55a3841
parent2e4837bf37ef494fd7ee5cc2b587f4ab32dbe5b2 (diff)
parentc22da490b9416b242235a1748d3aa2d4c9fde539 (diff)
Merge pull request #5554 from flysand7/ice-fix
Print the name of missing runtime procedure
-rw-r--r--src/llvm_backend_proc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp
index c95bb0c29..04dcc6662 100644
--- a/src/llvm_backend_proc.cpp
+++ b/src/llvm_backend_proc.cpp
@@ -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) {
AstPackage *pkg = m->info->runtime_package;
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);
}