diff --git a/src/compiler/interp.jl b/src/compiler/interp.jl index 4a1fe09..119e663 100644 --- a/src/compiler/interp.jl +++ b/src/compiler/interp.jl @@ -174,7 +174,8 @@ function CompilerPluginTools.optimize(interp::YaoInterpreter, ir::IRCode) # try to eliminate location mapping as much as possible count = 0 - while count < interp.max_const_invoke_elim && contains_const_invoke(ir, GlobalRef(YaoLocations, :map_check_nothrow)) + while count < interp.max_const_invoke_elim && + contains_const_invoke(ir, GlobalRef(YaoLocations, :map_check_nothrow)) ir = elim_location_mapping!(ir) count += 1 end diff --git a/src/compiler/syntax.jl b/src/compiler/syntax.jl index 3087d64..29b7859 100644 --- a/src/compiler/syntax.jl +++ b/src/compiler/syntax.jl @@ -81,8 +81,8 @@ end function codegen_routine(jlfn::JLFunction) typename = - isnothing(jlfn.name) ? gensym(:routine) : - Meta.isexpr(jlfn.name, :(::)) ? jlfn.name.args[end] : Symbol("#", jlfn.name, "#") + isnothing(jlfn.name) ? gensym(:routine) : + Meta.isexpr(jlfn.name, :(::)) ? jlfn.name.args[end] : Symbol("#", jlfn.name, "#") return quote $(codegen_routine_type(jlfn, typename))