mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix core dump with over 100 deep UNOPTFLAT, bug432.
This commit is contained in:
+3
-2
@@ -344,8 +344,9 @@ 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
|
||||
m_callTrace[currentRank++] = vertexp;
|
||||
// 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) {
|
||||
for (unsigned i=0; i<currentRank; i++) {
|
||||
|
||||
Reference in New Issue
Block a user