Commit 19809c9
committed
fix invalidations due to convert(Nothing, ::Any)
Before this PR:
```julia
julia> using SnoopCompileCore
julia> struct A end
julia> @Snoopr (::Type{<:A})(::AbstractVector) = 1
14-element Vector{Any}:
MethodInstance for convert(::Type{Union{}}, ::AbstractArray)
1
MethodInstance for convert(::Type{Nothing}, ::Any)
2
MethodInstance for Union{}(::AbstractArray)
"jl_method_table_insert"
MethodInstance for Core.Compiler.convert(::Type{V} where V<:Core.Compiler.BitArray{1}, ::Vector{var"#s122"} where var"#s122"<:Union{Float32, Float64})
1
MethodInstance for Core.Compiler.convert(::Type{T}, ::Vector{var"#s122"} where var"#s122"<:Union{Float32, Float64}) where T<:(Vector{T} where T)
1
MethodInstance for Union{}(::Vector{var"#s122"} where var"#s122"<:Union{Float32, Float64})
"jl_method_table_insert"
(::Type{var"#s3"} where var"#s3"<:A)(::AbstractVector{T} where T) in Main at REPL[3]:1
"jl_method_table_insert"
```
After:
```julia
julia> using SnoopCompileCore
julia> struct A end
julia> @Snoopr (::Type{<:A})(::AbstractVector) = 1
Any[]
```
This was causing invalidations in StaticArrays.1 parent 5cd1e3e commit 19809c9
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments