about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-11-03 12:40:26 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-11-09 11:07:44 +1100
commit89d7efaf8f5ed8c1c15faea21824ae479656bdc1 (patch)
treed296072221ae1181417acce0273050121a69d9f2 /compiler/rustc_llvm/llvm-wrapper
parent730626dbd924d7fbf3873bcf1da783f486efd1d7 (diff)
downloadrust-89d7efaf8f5ed8c1c15faea21824ae479656bdc1.tar.gz
rust-89d7efaf8f5ed8c1c15faea21824ae479656bdc1.zip
Make `RustString` an extern type to avoid `improper_ctypes` warnings
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/LLVMWrapper.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/LLVMWrapper.h b/compiler/rustc_llvm/llvm-wrapper/LLVMWrapper.h
index 73bbc9de855..76f7d054040 100644
--- a/compiler/rustc_llvm/llvm-wrapper/LLVMWrapper.h
+++ b/compiler/rustc_llvm/llvm-wrapper/LLVMWrapper.h
@@ -104,8 +104,9 @@ typedef struct OpaqueRustString *RustStringRef;
 typedef struct LLVMOpaqueTwine *LLVMTwineRef;
 typedef struct LLVMOpaqueSMDiagnostic *LLVMSMDiagnosticRef;
 
-extern "C" void LLVMRustStringWriteImpl(RustStringRef Str, const char *Ptr,
-                                        size_t Size);
+extern "C" void LLVMRustStringWriteImpl(RustStringRef buf,
+                                        const char *slice_ptr,
+                                        size_t slice_len);
 
 class RawRustStringOstream : public llvm::raw_ostream {
   RustStringRef Str;