mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Add more const. No functional change intended.
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ private:
|
||||
if (m_nodeDepth == 0) {
|
||||
// Check if simple "VARREF = ..." assignment, i.e.: this assignment sets the whole
|
||||
// variable (and in particular, it is not assigned only in part).
|
||||
if (AstVarRef* const refp = VN_CAST(nodep->lhsp(), VarRef)) {
|
||||
if (const AstVarRef* const refp = VN_CAST(nodep->lhsp(), VarRef)) {
|
||||
// Mark this VarScope as assigned in this function
|
||||
refp->varScopep()->user2(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user