diff --git a/src/compiler/optimize.jl b/src/compiler/optimize.jl index a35de5608f..2a1ef49553 100644 --- a/src/compiler/optimize.jl +++ b/src/compiler/optimize.jl @@ -353,6 +353,7 @@ end end else function combine_mul_add_tm!(pm, tm) +@static if VERSION < v"1.12.0-DEV.1390" function combine_mul_add(mod) @dispose pb = NewPMPassBuilder() begin add!(pb, NewPMModulePassManager()) do mpm @@ -365,6 +366,7 @@ else return true end add!(pm, ModulePass("CombineMulAdd", combine_mul_add)) +end end end