File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 21
21
- run : echo "Starting tests"
22
22
- name : Checking out repository
23
23
uses : actions/checkout@v2
24
- - run : make -C ${{ github.workspace }} -j$(nproc ) run
24
+ - run : make -C ${{ github.workspace }} -j$(sysctl -n hw.physicalcpu ) run
25
25
- run : echo "Tests completed"
Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ struct custom_type : custom_type_base {
64
64
}
65
65
};
66
66
67
- static std::vector<var *> *parents_stack = nullptr ;
67
+ extern std::vector<var *> *parents_stack;
68
+
68
69
// Struct to initialize a dyn_var as member;
69
70
struct as_member {
70
71
var *parent_var;
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ namespace options {
8
8
bool track_members = false ;
9
9
}
10
10
11
+ std::vector<var *> *parents_stack = nullptr ;
12
+
11
13
template <>
12
14
std::vector<block::type::Ptr> extract_type_vector_dyn<>(void ) {
13
15
std::vector<block::type::Ptr> empty_vector;
Original file line number Diff line number Diff line change @@ -334,6 +334,11 @@ block::stmt::Ptr builder_context::extract_ast_from_function_internal(std::vector
334
334
current_block_stmt->static_offset .clear ();
335
335
assert (current_block_stmt != nullptr );
336
336
ast = current_block_stmt;
337
+
338
+ if (parents_stack != nullptr ) {
339
+ parents_stack->clear ();
340
+ }
341
+
337
342
bool_vector = b;
338
343
339
344
block::stmt::Ptr ret_ast;
You can’t perform that action at this time.
0 commit comments