about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/allocator.rs
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2022-12-06 00:07:28 -0500
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2023-07-29 13:18:17 -0400
commitb6540777fed3ca92a7c306be6c6ab4b074a033b2 (patch)
treeb0244448fb119df915841efe5511d58d91a0de20 /compiler/rustc_codegen_llvm/src/allocator.rs
parent4c968227965f101e41bda8a38ff02fd1baee28c4 (diff)
downloadrust-b6540777fed3ca92a7c306be6c6ab4b074a033b2.tar.gz
rust-b6540777fed3ca92a7c306be6c6ab4b074a033b2.zip
cg_llvm: remove pointee types and pointercast/bitcast-of-ptr
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 {