diff --git a/src/V3Timing.cpp b/src/V3Timing.cpp index a529b4411..6c53d57ea 100644 --- a/src/V3Timing.cpp +++ b/src/V3Timing.cpp @@ -746,11 +746,12 @@ class TimingControlVisitor final : public VNVisitor { void addForkOnKill(AstBegin* const beginp, AstVarScope* const forkVscp) const { if (!beginp->needProcess()) return; FileLine* const flp = beginp->fileline(); - auto* const onKillp = new AstCMethodHard{ - flp, new AstVarRef{flp, forkVscp, VAccess::WRITE}, VCMethod::FORK_ON_KILL}; + auto* const onKillp = new AstCMethodHard{flp, new AstVarRef{flp, forkVscp, VAccess::WRITE}, + VCMethod::FORK_ON_KILL}; onKillp->dtypeSetVoid(); AstCExpr* const processp = new AstCExpr{flp, "vlProcess"}; - processp->dtypeSetVoid(); // Opaque process reference; type is irrelevant for hardcoded emit + processp + ->dtypeSetVoid(); // Opaque process reference; type is irrelevant for hardcoded emit onKillp->addPinsp(processp); AstNodeStmt* const stmtp = onKillp->makeStmt(); if (beginp->stmtsp()) { diff --git a/test_regress/t/t_disable_task_by_name.py b/test_regress/t/t_disable_task_by_name.py old mode 100644 new mode 100755 diff --git a/test_regress/t/t_disable_task_join.py b/test_regress/t/t_disable_task_join.py old mode 100644 new mode 100755 index 6f8da8aa7..55da782f9 --- a/test_regress/t/t_disable_task_join.py +++ b/test_regress/t/t_disable_task_join.py @@ -16,4 +16,3 @@ test.compile(timing_loop=True, verilator_flags2=["--timing"]) test.execute() test.passes() - diff --git a/test_regress/t/t_disable_task_scope_bad.py b/test_regress/t/t_disable_task_scope_bad.py old mode 100644 new mode 100755 index 40c047e86..bc540caa3 --- a/test_regress/t/t_disable_task_scope_bad.py +++ b/test_regress/t/t_disable_task_scope_bad.py @@ -14,4 +14,3 @@ test.scenarios('linter') test.lint(fails=True, expect_filename=test.golden_filename) test.passes() - diff --git a/test_regress/t/t_disable_task_target_bad.py b/test_regress/t/t_disable_task_target_bad.py old mode 100644 new mode 100755