forked from OSchip/llvm-project
Run ~GRState() when reclaiming GRStates.
llvm-svn: 125262
This commit is contained in:
parent
75e4564140
commit
1656db69f3
|
@ -293,6 +293,7 @@ void GRStateManager::recycleUnusedStates() {
|
||||||
continue;
|
continue;
|
||||||
StateSet.RemoveNode(state);
|
StateSet.RemoveNode(state);
|
||||||
freeStates.push_back(state);
|
freeStates.push_back(state);
|
||||||
|
state->~GRState();
|
||||||
}
|
}
|
||||||
recentlyAllocatedStates.clear();
|
recentlyAllocatedStates.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue