mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
[#93581] Fix segmentation fault when using --trace with --lib-create
Signed-off-by: Artur Bieniek <[email protected]>
This commit is contained in:
committed by
Ryszard Rozak
parent
885fbaf075
commit
057fd9f7ea
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user