Fix swerv issues with Increment nodes (#2380)
This commit is contained in:
parent
460315128b
commit
a4a1c7a384
|
|
@ -124,6 +124,14 @@ private:
|
|||
iterateChildren(nodep);
|
||||
m_insStmtp = NULL; // Next thing should be new statement
|
||||
}
|
||||
virtual void visit(AstNodeBlock* nodep) VL_OVERRIDE {
|
||||
AstNode* insStmtp_prev = m_insStmtp;
|
||||
{
|
||||
m_insStmtp = NULL;
|
||||
iterateChildren(nodep);
|
||||
}
|
||||
m_insStmtp = insStmtp_prev;
|
||||
}
|
||||
void unsupported_visit(AstNode* nodep) {
|
||||
m_unsupportedHere = true;
|
||||
UINFO(9, "Marking unsupported " << nodep << endl);
|
||||
|
|
|
|||
|
|
@ -107,6 +107,14 @@ module t (/*AUTOARG*/
|
|||
if (i !== 4) $stop;
|
||||
if (val !== 4) $stop;
|
||||
|
||||
|
||||
pos = 0;
|
||||
if (1 == 1) begin
|
||||
pos++;
|
||||
end
|
||||
|
||||
if (pos != 1) $stop;
|
||||
|
||||
$write("*-* All Finished *-*\n");
|
||||
$finish;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue