From 6318a08056e5d5bee72e584fb4bd5569ca1424a0 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sat, 23 May 2020 12:47:56 +0100 Subject: [PATCH] Fix --dump-tree with sparse dumps. "No changes since last dump!" is now only printed if the "last" dump was actually performed and not skipped due to V3Option::dumpTreeLevel settings. --- src/V3Ast.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/V3Ast.cpp b/src/V3Ast.cpp index 5d8b231dd..33e155ab5 100644 --- a/src/V3Ast.cpp +++ b/src/V3Ast.cpp @@ -1129,6 +1129,7 @@ void AstNode::dumpTreeFile(const string& filename, bool append, bool doDump) { *logsp << "No changes since last dump!\n"; } else { dumpTree(*logsp); + editCountSetLast(); // Next dump can indicate start from here } } } @@ -1139,8 +1140,6 @@ void AstNode::dumpTreeFile(const string& filename, bool append, bool doDump) { // set by other steps if it is called in the middle of other operations if (AstNetlist* netp = VN_CAST(this, Netlist)) V3Broken::brokenAll(netp); } - // Next dump can indicate start from here - editCountSetLast(); } void AstNode::v3errorEndFatal(std::ostringstream& str) const {