Skip to content

Commit

Permalink
Allow parametrization of optimize by interp. Fixes #100 (#102)
Browse files Browse the repository at this point in the history
This changed in JuliaLang/julia#38287
  • Loading branch information
timholy authored Nov 28, 2020
1 parent 9e0db2e commit 4290b6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ if isdefined(Core.Compiler, :AbstractInterpreter)
if Compiler.typeinf(interp, frame) && run_optimizer
oparams = Core.Compiler.OptimizationParams(interp)
opt = Compiler.OptimizationState(frame, oparams, interp)
Compiler.optimize(opt, oparams, result.result)
Base.VERSION >= v"1.6.0-DEV.1410" ? Compiler.optimize(interp, opt, oparams, result.result) :
Compiler.optimize(opt, oparams, result.result)
opt.src.inferred = true
end
ccall(:jl_typeinf_end, Cvoid, ())
Expand Down

0 comments on commit 4290b6b

Please sign in to comment.