Skip to content

Commit ca23062

Browse files
committed
Fix constexpr restoration
1 parent 8a1dd04 commit ca23062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function check_ir!(@nospecialize(job::CompilerJob), errors::Vector{IRError}, imp
397397
newf, _ = get_function!(mod, fused_name, FT)
398398

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

0 commit comments

Comments
 (0)