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-12-14 11:14:03 +0000
committerbors <bors@rust-lang.org>2023-12-14 11:14:03 +0000
commit1aa6aefdc92555b3fbc5ae4c99365df9845a3e31 (patch)
tree6f484d11a31b271f1e06739754ba4159521da813 /compiler/rustc_codegen_llvm/src/allocator.rs
parent9d49eb76c47a139ef71da4ab56aa9aeca5f24913 (diff)
parentc0134887d2b4cbac421babcd40710cc9b755f931 (diff)
downloadrust-1aa6aefdc92555b3fbc5ae4c99365df9845a3e31.tar.gz
rust-1aa6aefdc92555b3fbc5ae4c99365df9845a3e31.zip
Auto merge of #118566 - klensy:cstr-new, r=WaffleLapkin
use c literals in compiler and library

Relands refreshed https://github.com/rust-lang/rust/pull/111647
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 7acd18d69ed..58b3aa438c5 100644
--- a/compiler/rustc_codegen_llvm/src/allocator.rs
+++ b/compiler/rustc_codegen_llvm/src/allocator.rs
@@ -146,7 +146,7 @@ fn create_wrapper_function(
         }
         llvm::LLVMRustSetVisibility(callee, llvm::Visibility::Hidden);
 
-        let llbb = llvm::LLVMAppendBasicBlockInContext(llcx, llfn, "entry\0".as_ptr().cast());
+        let llbb = llvm::LLVMAppendBasicBlockInContext(llcx, llfn, c"entry".as_ptr().cast());
 
         let llbuilder = llvm::LLVMCreateBuilderInContext(llcx);
         llvm::LLVMPositionBuilderAtEnd(llbuilder, llbb);