diff options
| author | Valentin Tolmer <valentin.tolmer@gmail.com> | 2019-03-27 15:57:14 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-07-07 09:31:41 +0200 |
| commit | f5b30211c8fe3acb93be9a748004ee835adaa6e4 (patch) | |
| tree | cd04468df2c42ff4cfe9763804a9289ec2eaf6af /src/librustc_codegen_llvm/llvm | |
| parent | 4393768faa104b9879c601feee71eb0207dc4fe1 (diff) | |
| download | rust-f5b30211c8fe3acb93be9a748004ee835adaa6e4.tar.gz rust-f5b30211c8fe3acb93be9a748004ee835adaa6e4.zip | |
Handle null from LLVMRustGetSectionName
Diffstat (limited to 'src/librustc_codegen_llvm/llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/ffi.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/llvm/ffi.rs b/src/librustc_codegen_llvm/llvm/ffi.rs index a5c295cd452..708ba79ec3a 100644 --- a/src/librustc_codegen_llvm/llvm/ffi.rs +++ b/src/librustc_codegen_llvm/llvm/ffi.rs @@ -1736,7 +1736,9 @@ extern "C" { pub fn LLVMRustArchiveIteratorFree(AIR: &'a mut ArchiveIterator<'a>); pub fn LLVMRustDestroyArchive(AR: &'static mut Archive); - pub fn LLVMRustGetSectionName(SI: &SectionIterator<'_>, data: &mut *const c_char) -> size_t; + #[allow(improper_ctypes)] + pub fn LLVMRustGetSectionName(SI: &SectionIterator<'_>, + data: &mut Option<std::ptr::NonNull<c_char>>) -> size_t; #[allow(improper_ctypes)] pub fn LLVMRustWriteTwineToString(T: &Twine, s: &RustString); |
