File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ class block : public std::enable_shared_from_this<block> {
110110 return false ;
111111 return true ;
112112 }
113-
114113};
115114} // namespace block
116115#endif
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class expr_stmt : public stmt {
2929
3030 expr::Ptr expr1;
3131
32- // member to keep track if this expr stmt
32+ // member to keep track if this expr stmt
3333 // has been spuriously created and needs to be deleted
3434 bool mark_for_deletion = false ;
3535
Original file line number Diff line number Diff line change 11#include " blocks/c_code_generator.h"
2- #include " builder/dyn_var.h"
32#include " builder/array.h"
3+ #include " builder/dyn_var.h"
44#include " builder/static_var.h"
55
6- using builder::dyn_var;
76using builder::dyn_arr;
7+ using builder::dyn_var;
88using builder::static_var;
99
1010static void foo (void ) {
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ namespace block {
44
55void sub_expr_cleanup::visit (stmt_block::Ptr sb) {
66 std::vector<stmt::Ptr> new_stmts;
7- for (auto stmt: sb->stmts ) {
7+ for (auto stmt : sb->stmts ) {
88 if (!isa<expr_stmt>(stmt) || !to<expr_stmt>(stmt)->mark_for_deletion ) {
9- new_stmts.push_back (stmt);
10- }
9+ new_stmts.push_back (stmt);
10+ }
1111 }
1212 sb->stmts = new_stmts;
1313 block_visitor::visit (sb);
Original file line number Diff line number Diff line change 11#include " builder/builder_context.h"
22#include " blocks/for_loop_finder.h"
33#include " blocks/if_switcher.h"
4- #include " blocks/sub_expr_cleanup.h"
54#include " blocks/label_inserter.h"
65#include " blocks/loop_finder.h"
76#include " blocks/loop_roll.h"
87#include " blocks/rce.h"
8+ #include " blocks/sub_expr_cleanup.h"
99#include " blocks/var_namer.h"
1010#include " builder/builder.h"
1111#include " builder/dyn_var.h"
@@ -282,8 +282,8 @@ block::stmt::Ptr builder_context::extract_ast_from_function_impl(void) {
282282 block::label_inserter inserter;
283283 inserter.offset_to_label = creator.offset_to_label ;
284284 ast->accept (&inserter);
285-
286- // At this point it is safe to remove statements that are
285+
286+ // At this point it is safe to remove statements that are
287287 // marked for deletion
288288 block::sub_expr_cleanup cleaner;
289289 ast->accept (&cleaner);
You can’t perform that action at this time.
0 commit comments