Skip to content

Commit

Permalink
Update to LLVM 9.1. (#2491)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored Sep 16, 2024
1 parent 123977e commit f0ac5eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ExprTools = "0.1"
GPUArrays = "10.0.1"
GPUCompiler = "0.24, 0.25, 0.26, 0.27"
KernelAbstractions = "0.9.2"
LLVM = "6, 7, 8, 9"
LLVM = "9.1"
LLVMLoopInfo = "1"
LazyArtifacts = "1"
Libdl = "1"
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/compilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ function GPUCompiler.finish_module!(@nospecialize(job::CUDACompilerJob),
# generate IR for calls to `deferred_codegen` and the resulting function pointer
top_bb = first(blocks(entry))
bb = BasicBlock(top_bb, "initialize_rng")
LLVM.@dispose builder=IRBuilder() begin
@dispose builder=IRBuilder() begin
position!(builder, bb)
subprogram = LLVM.get_subprogram(entry)
subprogram = LLVM.subprogram(entry)
if subprogram !== nothing
loc = DILocation(0, 0, subprogram)
debuglocation!(builder, loc)
Expand Down

0 comments on commit f0ac5eb

Please sign in to comment.