mirror of
https://github.com/verilator/verilator.git
synced 2026-09-01 10:27:04 +02:00
Internals: Add cloneTreePure to prepare for side effect check.
Use cloneTreePure when what is being cloned must be side-effect free. Use cloneTree when safe to contain side effects (e.g. cloning module).
This commit is contained in:
+1
-1
@@ -353,7 +353,7 @@ private:
|
||||
}
|
||||
if (bitselp) {
|
||||
selectsp = new AstSel{nodep->fileline(), selectsp, bitreadp,
|
||||
bitselp->widthp()->cloneTree(false)};
|
||||
bitselp->widthp()->cloneTreePure(false)}; // Always pure
|
||||
}
|
||||
// Build "IF (changeit) ...
|
||||
UINFO(9, " For " << setvscp << endl);
|
||||
|
||||
Reference in New Issue
Block a user