Skip to content

Commit 9973a9e

Browse files
committed
fixup! don't initialize non-relocatible globals
1 parent bc3e9d1 commit 9973a9e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/driver.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,10 @@ const __llvm_initialized = Ref(false)
325325
name = LLVM.name(gv)
326326
init = get(gv_to_value, name, nothing)
327327
if init !== nothing
328-
@assert initializer(gv) === nothing
328+
if initializer(gv) !== nothing
329+
# TODO: How is this happening we should have stripped initializers earlier
330+
@show string(initializer(gv)), init
331+
end
329332
val = const_inttoptr(ConstantInt(reinterpret(UInt, init)), LLVM.PointerType())
330333
initializer!(gv, val)
331334
end

0 commit comments

Comments
 (0)