Skip to content

Commit

Permalink
Update attributes.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 4, 2024
1 parent af749d0 commit 3016b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ function annotate!(mod::LLVM.Module)
for fn in funcs[fname]
push!(parameter_attributes(fn, 2), LLVM.StringAttribute("enzyme_inactive"))
push!(parameter_attributes(fn, 4), LLVM.StringAttribute("enzyme_inactive"))
if value_type(LLVM.parameters(fn, 4)) isa LLVM.PointerType
if value_type(LLVM.parameters(fn)[4]) isa LLVM.PointerType
push!(parameter_attributes(fn, 4), LLVM.EnumAttribute("writeonly"))
push!(parameter_attributes(fn, 4), LLVM.EnumAttribute("nocapture"))
end
Expand Down

0 comments on commit 3016b2b

Please sign in to comment.