diff --git a/src/compiler/orcv2.jl b/src/compiler/orcv2.jl index 1640b05db2..4673cf30c7 100644 --- a/src/compiler/orcv2.jl +++ b/src/compiler/orcv2.jl @@ -266,7 +266,11 @@ function add!(mod) end function lookup(name) - LLVM.lookup(jit[].jit, name) + @static if sizeof(Int) == sizeof(Int64) + LLVM.lookup(jit[].jit, name) + else + UInt(LLVM.lookup(jit[].jit, name)) + end end end # module