mirror of
https://github.com/verilator/verilator.git
synced 2026-08-22 14:06:52 +02:00
Fix wrong error point, bug210
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ private:
|
||||
// Has to be direct assignment without any EXTRACTing.
|
||||
if (nodep->lhsp()->castVarRef() && !m_sideEffect) {
|
||||
AstVarScope* vscp = nodep->lhsp()->castVarRef()->varScopep();
|
||||
if (!vscp) vscp->v3fatalSrc("Scope lost on variable");
|
||||
if (!vscp) nodep->v3fatalSrc("Scope lost on variable");
|
||||
m_lifep->simpleAssign(vscp, nodep);
|
||||
} else {
|
||||
nodep->lhsp()->iterateAndNext(*this);
|
||||
|
||||
Reference in New Issue
Block a user