From 87338e42884b6f65c8bd8e97fdb0e00c0ac2b762 Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Sat, 20 Jul 2024 21:35:57 -0700 Subject: [PATCH] Fix #1630 (#1631) --- src/rules/customrules.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/customrules.jl b/src/rules/customrules.jl index 7506d2f565..34e8f2d8df 100644 --- a/src/rules/customrules.jl +++ b/src/rules/customrules.jl @@ -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} @@ -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)