Skip to content

Commit 4b66e4d

Browse files
committed
Fix a context use in Metal passes.
1 parent 52b6b25 commit 4b66e4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GPUCompiler"
22
uuid = "61eb1bfa-7361-4325-ad38-22787b887f55"
33
authors = ["Tim Besard <[email protected]>"]
4-
version = "0.21.1"
4+
version = "0.21.2"
55

66
[deps]
77
ExprTools = "e2ba6199-217a-4e67-a87a-7c52f15ade04"

src/metal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ end
9898

9999
function validate_ir(job::CompilerJob{MetalCompilerTarget}, mod::LLVM.Module)
100100
# Metal never supports double precision
101-
check_ir_values(mod, LLVM.DoubleType(context(mod)))
101+
check_ir_values(mod, LLVM.DoubleType())
102102
end
103103

104104
function finish_ir!(@nospecialize(job::CompilerJob{MetalCompilerTarget}), mod::LLVM.Module,

0 commit comments

Comments
 (0)