From f4001ec19bed50b1d1fddace35e7e6375ac08075 Mon Sep 17 00:00:00 2001 From: weiyu Date: Tue, 23 Jul 2019 11:32:11 -0700 Subject: [PATCH] fix bug --- history.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/history.cc b/history.cc index cb2df7a4..a3398f9c 100644 --- a/history.cc +++ b/history.cc @@ -44,6 +44,9 @@ void ModelHistory::enter_function(const uint32_t func_id, thread_id_t tid) func_list->push_back(func_id); func_inst_lists->push_back( new func_inst_list_t() ); + + if ( func_nodes.size() <= func_id ) + resize_func_nodes( func_id + 1 ); } /* @param func_id a non-zero value */ -- 2.34.1