mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix change detections on arrays.
This commit is contained in:
+4
-4
@@ -661,10 +661,10 @@ class EmitCImp : EmitCStmts {
|
||||
changep->lhsp()->iterateAndNext(*this);
|
||||
}
|
||||
else {
|
||||
AstVarRef* lhsp = changep->lhsp()->castVarRef();
|
||||
AstVarRef* rhsp = changep->rhsp()->castVarRef();
|
||||
if (!lhsp) changep->v3fatalSrc("Not ref?");
|
||||
if (!rhsp) changep->v3fatalSrc("Not ref?");
|
||||
AstNode* lhsp = changep->lhsp();
|
||||
AstNode* rhsp = changep->rhsp();
|
||||
if (!lhsp->castVarRef() && !lhsp->castArraySel()) changep->v3fatalSrc("Not ref?");
|
||||
if (!rhsp->castVarRef() && !rhsp->castArraySel()) changep->v3fatalSrc("Not ref?");
|
||||
for (int word=0; word<changep->lhsp()->widthWords(); word++) {
|
||||
if (!gotOne) {
|
||||
gotOne = true;
|
||||
|
||||
Reference in New Issue
Block a user