From c1205ebc4223928b5f8d1612fe421b48c235b7eb Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Sat, 7 Sep 2024 21:30:58 -0700 Subject: [PATCH] Initialize area stats in stat pass Currently, the area variables in the stat struct are not initialized. This caused the area stats occasionally being an erroneous value. Signed-off-by: Hoa Nguyen --- passes/cmds/stat.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc index 951a321e8..608505ebf 100644 --- a/passes/cmds/stat.cc +++ b/passes/cmds/stat.cc @@ -44,8 +44,8 @@ struct statdata_t #define X(_name) unsigned int _name; STAT_INT_MEMBERS #undef X - double area; - double sequential_area; + double area = 0; + double sequential_area = 0; string tech; std::map techinfo;