Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 1, 2024
1 parent f9b24bc commit 2e2f55b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ function get_pgcstack(func::LLVM.Function)
end

function reinsert_gcmarker!(func::LLVM.Function, @nospecialize(PB::Union{Nothing, LLVM.IRBuilder}) = nothing)
for i in 1:length(LLVM.parameters(fn))
for attr in collect(LLVM.parameter_attributes(fn, i))
for i in 1:length(LLVM.parameters(func))
for attr in collect(LLVM.parameter_attributes(func, i))
if attr isa LLVM.EnumAttribute
if kind(attr) == swiftself_kind
return parameters(fn)[i]
return parameters(func)[i]
end
end
end
Expand Down

0 comments on commit 2e2f55b

Please sign in to comment.