Skip to content

Commit c60ad25

Browse files
committed
Fix
1 parent 907a5c2 commit c60ad25

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
@@ -888,7 +888,7 @@ function add_globals_metadata!(@nospecialize(job::CompilerJob), mod::LLVM.Module
888888
i = 1
889889
for gv in globs
890890
gv_typ = global_value_type(gv)
891-
(isconstant(gv) && addrspace(gv_typ) == 3) || continue
891+
(isconstant(gv) && gv_typ isa LLVM.PointerType && addrspace(gv_typ) == 3) || continue
892892
# if job.config.optimize
893893
# @assert parameters(entry_ft)[arg.idx] isa LLVM.PointerType
894894
# else

0 commit comments

Comments
 (0)