Skip to content

Commit

Permalink
Fix constexpr restoration (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 31, 2024
1 parent 24122b1 commit b66563d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function check_ir!(@nospecialize(job::CompilerJob), errors::Vector{IRError}, imp
newf, _ = get_function!(mod, fused_name, FT)

while isa(newf, LLVM.ConstantExpr)
newf = operands(newf)
newf = operands(newf)[1]
end
push!(function_attributes(newf), StringAttribute("enzyme_math", fname))
# TODO we can make this relocatable if desired by having restore lookups re-create this got initializer/etc
Expand Down

0 comments on commit b66563d

Please sign in to comment.