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 427c548 commit aed5b9cCopy full SHA for aed5b9c
src/librustc_trans/back/write.rs
@@ -848,6 +848,7 @@ unsafe fn embed_bitcode(cgcx: &CodegenContext,
848
};
849
llvm::LLVMSetSection(llglobal, section.as_ptr() as *const _);
850
llvm::LLVMRustSetLinkage(llglobal, llvm::Linkage::PrivateLinkage);
851
+ llvm::LLVMSetGlobalConstant(llglobal, llvm::True);
852
853
let llconst = C_bytes_in_context(llcx, &[]);
854
let llglobal = llvm::LLVMAddGlobal(
0 commit comments