Skip to content

Commit 5a14f02

Browse files
gbaraldimaleadt
andauthored
Force emission of const return functions using new API (#677)
Co-authored-by: Tim Besard <[email protected]>
1 parent 58370e0 commit 5a14f02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/jlgen.jl

+3
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,9 @@ function compile_method_instance(@nospecialize(job::CompilerJob))
624624
if VERSION < v"1.12.0-DEV.1667"
625625
cgparams = (; lookup = Base.unsafe_convert(Ptr{Nothing}, lookup_cb), cgparams... )
626626
end
627+
if VERSION > v"1.13.0-DEV.285"
628+
cgparams = (; force_emit_all = true , cgparams...)
629+
end
627630
params = Base.CodegenParams(; cgparams...)
628631

629632
# generate IR

0 commit comments

Comments
 (0)