Internals: Convert foreach loops in V3Begin as well as V3Width (#5283)

This commit is contained in:
Arkadiusz Kozdra
2024-08-02 08:29:05 -04:00
committed by GitHub
parent 2f5c58b345
commit a61178bd89
5 changed files with 186 additions and 159 deletions
+4
View File
@@ -1563,6 +1563,10 @@ class TaskVisitor final : public VNVisitor {
// Done the loop
m_insStmtp = nullptr; // Next thing should be new statement
}
void visit(AstNodeForeach* nodep) override { // LCOV_EXCL_LINE
nodep->v3fatalSrc(
"Foreach statements should have been converted to while statements in V3Begin.cpp");
}
void visit(AstNodeFor* nodep) override { // LCOV_EXCL_LINE
nodep->v3fatalSrc(
"For statements should have been converted to while statements in V3Begin.cpp");