Skip to content

Commit 181a159

Browse files
Format .jl files (#24)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 79837ac commit 181a159

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/compiler/interp.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ function CompilerPluginTools.optimize(interp::YaoInterpreter, ir::IRCode)
174174

175175
# try to eliminate location mapping as much as possible
176176
count = 0
177-
while count < interp.max_const_invoke_elim && contains_const_invoke(ir, GlobalRef(YaoLocations, :map_check_nothrow))
177+
while count < interp.max_const_invoke_elim &&
178+
contains_const_invoke(ir, GlobalRef(YaoLocations, :map_check_nothrow))
178179
ir = elim_location_mapping!(ir)
179180
count += 1
180181
end

src/compiler/syntax.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ end
8181

8282
function codegen_routine(jlfn::JLFunction)
8383
typename =
84-
isnothing(jlfn.name) ? gensym(:routine) :
85-
Meta.isexpr(jlfn.name, :(::)) ? jlfn.name.args[end] : Symbol("#", jlfn.name, "#")
84+
isnothing(jlfn.name) ? gensym(:routine) :
85+
Meta.isexpr(jlfn.name, :(::)) ? jlfn.name.args[end] : Symbol("#", jlfn.name, "#")
8686

8787
return quote
8888
$(codegen_routine_type(jlfn, typename))

0 commit comments

Comments
 (0)