mirror of
https://github.com/verilator/verilator.git
synced 2025-07-31 07:56:10 +00:00
Internals: Add const
This commit is contained in:
parent
b95ee84343
commit
27883b52d6
@ -155,7 +155,7 @@ private:
|
||||
}
|
||||
}
|
||||
virtual void visit(AstVarRef* nodep) override {
|
||||
AstNode* const backp = nodep->backp();
|
||||
const AstNode* const backp = nodep->backp();
|
||||
if (nodep->access().isReadOnly() && !VN_IS(backp, CCast) && VN_IS(backp, NodeMath)
|
||||
&& !VN_IS(backp, ArraySel) && !VN_IS(backp, RedXor) && backp->width()
|
||||
&& castSize(nodep) != castSize(nodep->varp())) {
|
||||
|
Loading…
Reference in New Issue
Block a user