From a5eee14732d0a6a522cdcc5b71c44f7081d3355f Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 6 Feb 2024 17:50:03 +0100 Subject: [PATCH] fixup! Add scopeinfo index/lookup utils --- kernel/scopeinfo.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/scopeinfo.cc b/kernel/scopeinfo.cc index 0b32ac3d130..7ed9ebf33f7 100644 --- a/kernel/scopeinfo.cc +++ b/kernel/scopeinfo.cc @@ -29,7 +29,8 @@ template void ModuleHdlnameIndex::index_items(I be if (!filter(item)) continue; std::vector path = parse_hdlname(item); - lookup.emplace(item, tree.insert(path, item)); + if (!path.empty()) + lookup.emplace(item, tree.insert(path, item)); } }