projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6869097
)
fix bug
author
weiyu
<weiyuluo1232@gmail.com>
Tue, 23 Jul 2019 18:32:11 +0000
(11:32 -0700)
committer
weiyu
<weiyuluo1232@gmail.com>
Tue, 23 Jul 2019 18:32:11 +0000
(11:32 -0700)
history.cc
patch
|
blob
|
history
diff --git
a/history.cc
b/history.cc
index cb2df7a4659185bd1313db26004b91497477ebe2..a3398f9c8b56ab9b7debe4a6f18df396a830de6b 100644
(file)
--- 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 */