From 2f1efe933e8a88adc5075137d889ab7fda735211 Mon Sep 17 00:00:00 2001 From: KristofferC Date: Mon, 14 Oct 2024 14:03:28 +0200 Subject: [PATCH] fix number of purity args on 1.11+ --- src/VectorizationBase.jl | 6 +++++- src/llvm_types.jl | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/VectorizationBase.jl b/src/VectorizationBase.jl index 15f8dcc..94cfb7e 100644 --- a/src/VectorizationBase.jl +++ b/src/VectorizationBase.jl @@ -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 diff --git a/src/llvm_types.jl b/src/llvm_types.jl index 6ffedf8..46938c2 100644 --- a/src/llvm_types.jl +++ b/src/llvm_types.jl @@ -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)