Skip to content

Commit 8ade7f8

Browse files
authored
Use at-inline instead of _inline_meta. (#267)
1 parent bf9e19c commit 8ade7f8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/interop/base.jl

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,16 @@ function call_function(llvmf::LLVM.Function, rettyp::Type=Nothing, argtyp::Type=
3434
ir = string(mod)
3535
fn = LLVM.name(llvmf)
3636
@assert !isempty(fn)
37-
quote
38-
Base.@_inline_meta
39-
Base.llvmcall(($ir,$fn), $rettyp, $argtyp, $(args...))
37+
if VERSION >= v"1.8.0-DEV.410"
38+
quote
39+
Base.@inline
40+
Base.llvmcall(($ir,$fn), $rettyp, $argtyp, $(args...))
41+
end
42+
else
43+
quote
44+
Base.@_inline_meta
45+
Base.llvmcall(($ir,$fn), $rettyp, $argtyp, $(args...))
46+
end
4047
end
4148
end
4249

0 commit comments

Comments
 (0)