Skip to content

Commit bb50223

Browse files
committed
Fix
1 parent 1f1a81c commit bb50223

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
@@ -922,7 +922,7 @@ function add_globals_metadata!(@nospecialize(job::CompilerJob), mod::LLVM.Module
922922
i = 1
923923
for gv in globs
924924
gv_typ = global_value_type(gv)
925-
(isconstant(gv) && addrspace(gv_typ) == 3) || continue
925+
(isconstant(gv) && gv_typ isa LLVM.PointerType && addrspace(gv_typ) == 3) || continue
926926
# if job.config.optimize
927927
# @assert parameters(entry_ft)[arg.idx] isa LLVM.PointerType
928928
# else

0 commit comments

Comments
 (0)