We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78fc510 commit 9c3d811Copy full SHA for 9c3d811
src/librustc_trans/back/write.rs
@@ -869,6 +869,7 @@ unsafe fn embed_bitcode(cgcx: &CodegenContext,
869
};
870
llvm::LLVMSetSection(llglobal, section.as_ptr() as *const _);
871
llvm::LLVMRustSetLinkage(llglobal, llvm::Linkage::PrivateLinkage);
872
+ llvm::LLVMSetGlobalConstant(llglobal, llvm::True);
873
874
let llconst = C_bytes_in_context(llcx, &[]);
875
let llglobal = llvm::LLVMAddGlobal(
0 commit comments