diff --git a/Project.toml b/Project.toml index baa63f6..9bd8bc6 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "AllocCheck" uuid = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a" authors = ["JuliaHub Inc."] -version = "0.2.3" +version = "0.2.4" [deps] ExprTools = "e2ba6199-217a-4e67-a87a-7c52f15ade04" @@ -11,7 +11,7 @@ MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" [compat] GPUCompiler = "1.3" -LLVM = "9.1" +LLVM = "9.8.1" ExprTools = "0.1" MacroTools = "0.5" julia = "1.10" diff --git a/src/compiler.jl b/src/compiler.jl index 755864d..67def9b 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -111,7 +111,7 @@ function compile_callable(f::F, tt::TT=Tuple{}; ignore_throw=true) where {F, TT} GPUCompiler.ThreadSafeModule(mod) end LLVM.add!(lljit, jd, tsm) - f_ptr = pointer(LLVM.lookup(lljit, entry_name)) + f_ptr = pointer(LLVM.lookup(lljit, jd, entry_name)) if f_ptr == C_NULL throw(GPUCompiler.InternalCompilerError(job, "Failed to compile @check_allocs function"))