Skip to content

Commit 6778a5f

Browse files
committed
Fix
1 parent 990838c commit 6778a5f

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
@@ -1126,7 +1126,7 @@ function add_globals_metadata!(@nospecialize(job::CompilerJob), mod::LLVM.Module
11261126
i = 1
11271127
for gv in globs
11281128
gv_typ = global_value_type(gv)
1129-
(isconstant(gv) && addrspace(gv_typ) == 3) || continue
1129+
(isconstant(gv) && gv_typ isa LLVM.PointerType && addrspace(gv_typ) == 3) || continue
11301130
# if job.config.optimize
11311131
# @assert parameters(entry_ft)[arg.idx] isa LLVM.PointerType
11321132
# else

0 commit comments

Comments
 (0)