We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738dc65 commit dd7a7acCopy full SHA for dd7a7ac
src/orc.jl
@@ -11,6 +11,9 @@ export JITTargetMachine
11
end
12
13
Base.unsafe_convert(::Type{API.LLVMOrcJITStackRef}, orc::OrcJIT) = orc.ref
14
+Base.unsafe_convert(::Type{Ptr{Cvoid}}, orc::OrcJIT) = Base.unsafe_convert(Ptr{Cvoid}, orc.ref)
15
+
16
+OrcJIT(ref::Ptr{Cvoid}) = OrcJIT(Base.unsafe_convert(API.LLVMOrcJITStackRef, ref))
17
18
"""
19
OrcJIT(::TargetMachine)
0 commit comments