Skip to content

Commit 30c6e45

Browse files
Format Julia code (#1460)
Co-authored-by: enzyme-ci-bot[bot] <78882869+enzyme-ci-bot[bot]@users.noreply.github.com>
1 parent 91ea968 commit 30c6e45

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/utils.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ function make_oc_ref(
499499
)::Core.OpaqueClosure
500500
if Base.isassigned(oc_captures)
501501
return oc_captures[]
502-
else
502+
else
503503
ores = ccall(
504504
:jl_new_opaque_closure_from_code_info,
505505
Any,
@@ -558,7 +558,7 @@ function rewrite_argnumbers_by_one!(ir)
558558
pushfirst!(ir.argtypes, Nothing)
559559

560560
# Re-write all references to existing arguments to their new index (N + 1)
561-
for idx = 1:length(ir.stmts)
561+
for idx in 1:length(ir.stmts)
562562
urs = Core.Compiler.userefs(ir.stmts[idx][:inst])
563563
changed = false
564564
it = Core.Compiler.iterate(urs)
@@ -697,9 +697,8 @@ function call_with_reactant_generator(
697697
) || guaranteed_error
698698
ir, any_changed = rewrite_insts!(ir, interp, guaranteed_error)
699699
end
700-
701700

702-
rewrite_argnumbers_by_one!(ir)
701+
rewrite_argnumbers_by_one!(ir)
703702

704703
src = ccall(:jl_new_code_info_uninit, Ref{CC.CodeInfo}, ())
705704
src.slotnames = fill(:none, length(ir.argtypes) + 1)
@@ -708,7 +707,6 @@ function call_with_reactant_generator(
708707
src.rettype = rt
709708
src = CC.ir_to_codeinf!(src, ir)
710709

711-
712710
if DEBUG_INTERP[]
713711
safe_print("src", src)
714712
end

0 commit comments

Comments
 (0)