File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -870,21 +870,12 @@ class cppfront
870
870
};
871
871
class current_functions_
872
872
{
873
- std::vector<function_info> list = { {} };
874
- const size_t MaxNestedFunctions = 100 ; // see the next comment and the assertion:
873
+ std::deque<function_info> list = { {} };
875
874
public:
876
- current_functions_ () {
877
- list.reserve (MaxNestedFunctions); // (1) for pointer stability / lifetime safety
878
- }
879
-
880
875
auto push (
881
876
declaration_node const * decl,
882
877
declaration_node::declared_that_funcs thats
883
878
) {
884
- assert (
885
- list.size () < MaxNestedFunctions // (2) check that we're not exceeding the limit
886
- && " ICE: overflowed limit on nested functions - fix by increasing MaxNestedFunctions value"
887
- );
888
879
list.emplace_back (decl, thats);
889
880
}
890
881
You can’t perform that action at this time.
0 commit comments