We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 605bd83 commit 43ad9e0Copy full SHA for 43ad9e0
src/driver.jl
@@ -325,7 +325,10 @@ const __llvm_initialized = Ref(false)
325
name = LLVM.name(gv)
326
init = get(gv_to_value, name, nothing)
327
if init !== nothing
328
- @assert initializer(gv) === nothing
+ if initializer(gv) !== nothing
329
+ # TODO: How is this happening we should have stripped initializers earlier
330
+ @show string(initializer(gv)), init
331
+ end
332
val = const_inttoptr(ConstantInt(reinterpret(UInt, init)), LLVM.PointerType())
333
initializer!(gv, val)
334
end
0 commit comments