From cb3aa6d76ae8fe250df7a1390049e245cb5ba76a Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 17 Apr 2026 18:38:40 +0200 Subject: [PATCH] simplify: no fast lookup for packages --- frontends/ast/simplify.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 5f0e04ebf..d90ade3fe 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -4862,8 +4862,10 @@ void AstNode::add_to_module_fast_lookup(dict& module_fast dict AstNode::generate_module_fast_lookup_for_genblock_expansion() { dict module_fast_lookup; - for (auto& node : current_ast_mod->children) { - add_to_module_fast_lookup(module_fast_lookup, node.get()); + if (current_ast_mod) { + for (auto& node : current_ast_mod->children) { + add_to_module_fast_lookup(module_fast_lookup, node.get()); + } } return module_fast_lookup; }