Skip to content

Commit e0179d2

Browse files
authored
Allow for singleton specialization in precompile test (#478)
This updates for JuliaLang/julia#49071. I added this test, so I thought I should fix it.
1 parent 60c532e commit e0179d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/precompile/precompile.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ using SnoopCompileCore
44
@testset "Invalidation and precompilation" begin
55
invs = @snoopr using LVUser
66
m = only(methods(LVUser.filter2davx))
7-
mi = m.specializations[1]
7+
specs = m.specializations
8+
mi = isa(specs, Core.MethodInstance) ? specs : specs[1]
89
@test mi invs
910
A = rand(Float64, 512, 512)
1011
kern = [

0 commit comments

Comments
 (0)