diff --git a/src/reflection.jl b/src/reflection.jl index ca544988..0df53c6d 100644 --- a/src/reflection.jl +++ b/src/reflection.jl @@ -174,7 +174,7 @@ function process_info(interp::AbstractInterpreter, @nospecialize(info::CCCallInf matches = info.results.matches return CallInfo[let mi = specialize_method(match) - effects = get_effects(interp, mi, false) + effects = get_effects(interp, mi, optimize) mici = MICallInfo(mi, rt, effects, exct) is_cached(mi) ? mici : UncachedCallInfo(mici) end for match::Core.MethodMatch in matches]