Skip to content

Commit 202e304

Browse files
committed
Fix
1 parent ac0aa45 commit 202e304

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/metal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ function add_globals_metadata!(@nospecialize(job::CompilerJob), mod::LLVM.Module
10361036
i = 1
10371037
for gv in globs
10381038
gv_typ = global_value_type(gv)
1039-
(isconstant(gv) && addrspace(gv_typ) == 3) || continue
1039+
(isconstant(gv) && gv_typ isa LLVM.PointerType && addrspace(gv_typ) == 3) || continue
10401040
# if job.config.optimize
10411041
# @assert parameters(entry_ft)[arg.idx] isa LLVM.PointerType
10421042
# else

0 commit comments

Comments
 (0)