Skip to content

Commit

Permalink
fix number of purity args on 1.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Oct 14, 2024
1 parent 83cd26c commit 2f1efe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/VectorizationBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,11 @@ demoteint(::Type{Int64}, W::StaticInt) = gt(W, pick_vector_width(Int64))
end
meta = Expr(:meta, :inline)
if VERSION >= v"1.8.0-beta"
push!(meta.args, Expr(:purity, true, true, true, true, false))
purity = Expr(:purity, true, true, true, true, false)
if VERSION >= v"1.11"
push!(purity.args, false, false, false, false, false, false)
end
push!(meta.args, purity)
end
quote
$meta
Expand Down
1 change: 1 addition & 0 deletions src/llvm_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ end
Expr(:purity, true, true, true, true, false)
end
VERSION >= v"1.9.0-DEV.1019" && push!(purity.args, true)
VERSION >= v"1.11" && push!(purity.args, false, false, false, false, false)
Expr(:meta, purity, :inline)
else
Expr(:meta, :inline)
Expand Down

0 comments on commit 2f1efe9

Please sign in to comment.