Skip to content

Commit

Permalink
Fix #1630 (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwe authored Jul 21, 2024
1 parent 7620581 commit 87338e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/customrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function enzyme_custom_setup_args(B, orig::LLVM.CallInst, gutils::GradientUtils,
if mixed
RefTy = arg.typ
if width != 1
RefTy = NTuple{N, RefTy}
RefTy = NTuple{Int(width), RefTy}
end
llrty = convert(LLVMType, RefTy)
RefTy = Base.RefValue{RefTy}
Expand Down Expand Up @@ -1035,7 +1035,7 @@ end
for (ptr_val, argTyp, refal) in mixeds
RefTy = argTyp
if width != 1
RefTy = NTuple{N, RefTy}
RefTy = NTuple{Int(width), RefTy}
end
curs = load!(B, convert(LLVMType, RefTy), refal)

Expand Down

0 comments on commit 87338e4

Please sign in to comment.