about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/allocator.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-02 06:03:16 +0000
committerbors <bors@rust-lang.org>2023-08-02 06:03:16 +0000
commitf1280576ec204f1cf9060e6c3918c22a2f185ee5 (patch)
tree535cb16a7a96d1046a48966e8a5a0812b0a63ac3 /compiler/rustc_codegen_llvm/src/allocator.rs
parent320cd7d55111dc8acc4b2f4e6d4c51c4eba60d3e (diff)
parent2d01258c122f2218ca79bfd75ae6cd2354e12cb1 (diff)
downloadrust-f1280576ec204f1cf9060e6c3918c22a2f185ee5.tar.gz
rust-f1280576ec204f1cf9060e6c3918c22a2f185ee5.zip
Auto merge of #3003 - rust-lang:rustup-2023-08-02, r=RalfJung
Automatic sync from rustc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/allocator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/allocator.rs b/compiler/rustc_codegen_llvm/src/allocator.rs
index a57508815d6..ca123334fca 100644
--- a/compiler/rustc_codegen_llvm/src/allocator.rs
+++ b/compiler/rustc_codegen_llvm/src/allocator.rs
@@ -28,7 +28,7 @@ pub(crate) unsafe fn codegen(
         tws => bug!("Unsupported target word size for int: {}", tws),
     };
     let i8 = llvm::LLVMInt8TypeInContext(llcx);
-    let i8p = llvm::LLVMPointerType(i8, 0);
+    let i8p = llvm::LLVMPointerTypeInContext(llcx, 0);
     let void = llvm::LLVMVoidTypeInContext(llcx);
 
     if kind == AllocatorKind::Default {