Fix core dump with over 100 deep UNOPTFLAT, bug432.

This commit is contained in:
Wilson Snyder 2012-01-26 20:20:23 -05:00
parent 8f40d6617e
commit 0c7c4924ee
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,8 @@ indicates the contributor was also the author of the fix; Thanks!
*** Report MULTIDRIVEN on memories set in multiple clock domains.
**** Fix core dump with over 100 deep UNOPTFLAT, bug432. [Joe Eiler]
* Verilator 3.831 2012/01/20

View File

@ -344,7 +344,8 @@ private:
// When we hit ourself again, return the list of all loops
if (m_done) return;
m_callTrace.reserve(currentRank+10); // Leave slop for speed
// Can't just reserve(), unless we modify size() before setting array directly
while (m_callTrace.size() <= currentRank) m_callTrace.push_back(vertexp);
m_callTrace[currentRank++] = vertexp;
if (vertexp->user() == 1) {