Skip to content

Commit 2e2c7ee

Browse files
committed
Adapt to LLVM 16.
1 parent d000b0c commit 2e2c7ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiler/compilation.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ function compile(@nospecialize(job::CompilerJob))
6969
output = Pipe()
7070

7171
cmd = `$(LLVMDowngrader_jll.llvm_as()) --bitcode-version=5.0 -o -`
72+
if LLVM.version() >= v"16"
73+
cmd = `$cmd --opaque-pointers=0`
74+
end
7275
proc = run(pipeline(cmd, stdout=output, stderr=stderr, stdin=input); wait=false)
7376
close(output.in)
7477

0 commit comments

Comments
 (0)