Fix segmentation fault when using --trace with --lib-create (#7299) (#7518)

This commit is contained in:
anonkey
2026-05-12 10:16:47 -04:00
committed by GitHub
parent 831396f848
commit 67b21e4c62
17 changed files with 595 additions and 35 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