diff options
Diffstat (limited to '')
-rw-r--r-- | compiler/PrePasses.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/PrePasses.ml b/compiler/PrePasses.ml index 5e0aa289..11cd89fc 100644 --- a/compiler/PrePasses.ml +++ b/compiler/PrePasses.ml @@ -238,7 +238,9 @@ let remove_loop_breaks (crate : crate) (f : fun_decl) : fun_decl = method! visit_Sequence env st1 st2 = match st1.content with | Loop _ -> - sanity_check __FILE__ __LINE__ (statement_has_no_loop_break_continue st2) st2.meta; + sanity_check __FILE__ __LINE__ + (statement_has_no_loop_break_continue st2) + st2.meta; (replace_breaks_with st1 st2).content | _ -> super#visit_Sequence env st1 st2 end |