mirror of
https://github.com/verilator/verilator.git
synced 2025-01-10 00:27:35 +00:00
Fix wrong error point, bug210
This commit is contained in:
parent
2da9d46ca6
commit
295faf726b
@ -329,7 +329,7 @@ private:
|
|||||||
// Has to be direct assignment without any EXTRACTing.
|
// Has to be direct assignment without any EXTRACTing.
|
||||||
if (nodep->lhsp()->castVarRef() && !m_sideEffect) {
|
if (nodep->lhsp()->castVarRef() && !m_sideEffect) {
|
||||||
AstVarScope* vscp = nodep->lhsp()->castVarRef()->varScopep();
|
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);
|
m_lifep->simpleAssign(vscp, nodep);
|
||||||
} else {
|
} else {
|
||||||
nodep->lhsp()->iterateAndNext(*this);
|
nodep->lhsp()->iterateAndNext(*this);
|
||||||
|
Loading…
Reference in New Issue
Block a user