mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix initiation of function variables (#3815).
This commit is contained in:
@@ -108,6 +108,7 @@ private:
|
||||
AstVar* const newVarp
|
||||
= new AstVar{oldVarp->fileline(), oldVarp->varType(), newName, oldVarp};
|
||||
newVarp->funcLocal(true);
|
||||
newVarp->noReset(oldVarp->noReset());
|
||||
funcp->addInitsp(newVarp);
|
||||
|
||||
// Fix up all the references within this function
|
||||
|
||||
Reference in New Issue
Block a user