Internals: No need for 'if' before VL_FFLUSH_I

This commit is contained in:
Wilson Snyder 2025-08-10 06:13:18 -04:00
parent d28436dccc
commit a74a3bb689
1 changed files with 12 additions and 15 deletions

View File

@ -974,12 +974,9 @@ public:
if (!nodep->filep()) {
putns(nodep, "Verilated::runFlushCallbacks();\n");
} else {
putns(nodep, "if (");
iterateAndNextConstNull(nodep->filep());
puts(") { ");
putns(nodep, "VL_FFLUSH_I(");
iterateAndNextConstNull(nodep->filep());
puts("); }\n");
puts(");\n");
}
}
void visit(AstFSeek* nodep) override {