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 d1f0080 commit 2ef8c52Copy full SHA for 2ef8c52
src/jlgen.jl
@@ -355,12 +355,18 @@ function compile_method_instance(@nospecialize(job::CompilerJob),
355
356
# generate IR
357
GC.@preserve lookup_cb begin
358
- native_code = ccall(:jl_create_native, Ptr{Cvoid},
359
- (Vector{MethodInstance}, Base.CodegenParams, Cint),
360
- [method_instance], params, #=extern policy=# 1)
+ native_code = if VERSION >= v"1.8.0-DEV.661"
+ ccall(:jl_create_native, Ptr{Cvoid},
+ (Vector{MethodInstance}, Ptr{Base.CodegenParams}, Cint),
361
+ [method_instance], Ref(params), #=extern policy=# 1)
362
+ else
363
364
+ (Vector{MethodInstance}, Base.CodegenParams, Cint),
365
+ [method_instance], params, #=extern policy=# 1)
366
+ end
367
@assert native_code != C_NULL
368
llvm_mod_ref = ccall(:jl_get_llvm_module, LLVM.API.LLVMModuleRef,
- (Ptr{Cvoid},), native_code)
369
+ (Ptr{Cvoid},), native_code)
370
@assert llvm_mod_ref != C_NULL
371
llvm_mod = LLVM.Module(llvm_mod_ref)
372
end
0 commit comments