[#93581] Fix segmentation fault when using --trace with --lib-create

Signed-off-by: Artur Bieniek <[email protected]>
This commit is contained in:
Artur Bieniek
2026-04-15 15:38:59 +02:00
committed by Ryszard Rozak
parent 885fbaf075
commit 057fd9f7ea
19 changed files with 595 additions and 61 deletions
+1
View File
@@ -167,6 +167,7 @@ void V3LinkLevel::wrapTop(AstNetlist* rootp) {
UINFO(1, "No module found to wrap");
return;
}
rootp->resolvedTopModuleName(oldmodp->name());
AstNodeModule* const newmodp = new AstModule{oldmodp->fileline(), "$root", oldmodp->libname()};
newmodp->name(AstNode::encodeName(newmodp->name())); // so origName is nice