Skip to content

Commit 2e3b7d5

Browse files
committed
Initialize globals with an AS-less pointer.
1 parent f8d91d7 commit 2e3b7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jlgen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ function compile_method_instance(@nospecialize(job::CompilerJob))
713713

714714
for (gv_ref, init) in zip(gvs, inits)
715715
gv = GlobalVariable(gv_ref)
716-
val = const_inttoptr(ConstantInt(Int64(init)), value_type(gv))
716+
val = const_inttoptr(ConstantInt(Int64(init)), LLVM.PointerType())
717717
initializer!(gv, val)
718718
end
719719
end

0 commit comments

Comments
 (0)