diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-02-18 14:29:26 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-02-18 14:29:26 -0500 |
commit | 91c48b1c3ba6e46324b96fb76762a4d973ce6007 (patch) | |
tree | 92c691b1ebc702dc5ccdb1f43a647faaa942bc1e /src/cpu/inorder/reg_dep_map.cc | |
parent | 8b4b4a1ba50a6f422ab75ccf0fb09568f1805ce6 (diff) | |
download | gem5-91c48b1c3ba6e46324b96fb76762a4d973ce6007.tar.xz |
inorder: cleanup in destructors
cleanup hanging pointers and other cruft in the destructors
Diffstat (limited to 'src/cpu/inorder/reg_dep_map.cc')
-rw-r--r-- | src/cpu/inorder/reg_dep_map.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu/inorder/reg_dep_map.cc b/src/cpu/inorder/reg_dep_map.cc index 98a0727a9..48820b50e 100644 --- a/src/cpu/inorder/reg_dep_map.cc +++ b/src/cpu/inorder/reg_dep_map.cc @@ -45,6 +45,14 @@ RegDepMap::RegDepMap(int size) regMap.resize(size); } +RegDepMap::~RegDepMap() +{ + for (int i = 0; i < regMap.size(); i++) { + regMap[i].clear(); + } + regMap.clear(); +} + string RegDepMap::name() { |