Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force emission of const return functions using new API #677

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gbaraldi
Copy link
Contributor

This depends on JuliaLang/julia#57824 being merged to add a correct version check

Copy link
Contributor

Your PR requires formatting changes to meet the project's style guidelines.
Please consider running Runic (git runic master) to apply these changes.

Click here to view the suggested changes.
diff --git a/src/jlgen.jl b/src/jlgen.jl
index b5444a2..554df4b 100644
--- a/src/jlgen.jl
+++ b/src/jlgen.jl
@@ -625,7 +625,7 @@ function compile_method_instance(@nospecialize(job::CompilerJob))
         cgparams = (; lookup = Base.unsafe_convert(Ptr{Nothing}, lookup_cb), cgparams... )
     end
     if VERSION > v"1.13.0-DEV.248"
-        cgparams = (; force_emit_const = true , cgparams...)
+        cgparams = (; force_emit_const = true, cgparams...)
     end
     params = Base.CodegenParams(; cgparams...)
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant