Skip to content

Commit 268a138

Browse files
committed
fix: mark the linkage of global constanas as internal: llvmbc - ccall.
1 parent fab9288 commit 268a138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ function try_import_llvmbc(mod::LLVM.Module, flib::String, fname::String, import
593593
end
594594
end
595595
for g in globals(inmod)
596-
linkage!(g, LLVM.API.LLVMExternalLinkage)
596+
linkage!(g, LLVM.API.LLVMInternalLinkage)
597597
end
598598
# override libdevice's triple and datalayout to avoid warnings
599599
triple!(inmod, triple(mod))

0 commit comments

Comments
 (0)