From 5fdf22db592e566064f3345e048326ba62e404c1 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Thu, 31 Oct 2024 11:09:58 -0400 Subject: [PATCH] fix --- src/compiler.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler.jl b/src/compiler.jl index f28fcd7003..e929e68d3c 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -6882,7 +6882,7 @@ end legal, source_typ, byref = abs_typeof(inst) codegen_typ = value_type(inst) if legal - typ = if codegen_typ isa LLVM.PointerType + typ = if codegen_typ isa LLVM.PointerType || codegen_typ isa LLVM.IntegerType llvm_source_typ = convert(LLVMType, source_typ; allow_boxed = true) # pointers are used for multiple kinds of arguments # - literal pointer values @@ -6918,7 +6918,8 @@ end ), ) else - metadata(inst)["enzyme_type"] = to_md(typetree(typ, ctx, dl, seen), ctx) + ec = typetree(typ, ctx, dl, seen) + metadata(inst)["enzyme_type"] = to_md(ec, ctx) end elseif codegen_typ == T_prjlvalue if isa(inst, LLVM.CallInst)