1
Fork 0

Consistently use safe wrapper function set_section

This commit is contained in:
Zalathar 2024-10-30 10:02:46 +11:00
parent 1e4f10ba64
commit 65ff2a6ad7
7 changed files with 18 additions and 18 deletions

View file

@ -565,7 +565,7 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
let g = llvm::LLVMAddGlobal(self.llmod, self.val_ty(array), name.as_ptr());
llvm::LLVMSetInitializer(g, array);
llvm::set_linkage(g, llvm::Linkage::AppendingLinkage);
llvm::LLVMSetSection(g, c"llvm.metadata".as_ptr());
llvm::set_section(g, c"llvm.metadata");
}
}
}