From 6af80769678f260aa4aeaf3b12b54dfdc15fa5dd Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 24 Oct 2015 21:56:53 +0200 Subject: [PATCH] improvement in "stat" --- passes/cmds/stat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc index 0aa76467f..ed4a04064 100644 --- a/passes/cmds/stat.cc +++ b/passes/cmds/stat.cc @@ -223,7 +223,7 @@ struct StatPass : public Pass { data.log_data(); } - if (top_mod != NULL) + if (top_mod != NULL && GetSize(mod_stat) > 1) { log("\n"); log("=== design hierarchy ===\n"); -- 2.30.2