about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/allocator.rs
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2023-12-03 14:02:31 +0300
committerklensy <klensy@users.noreply.github.com>2023-12-03 14:54:09 +0300
commit26e69a88167bd68ad65b22d5ca013f1270b163be (patch)
treed207d9c69505302c4b165920c2df8446a15b1a47 /compiler/rustc_codegen_llvm/src/allocator.rs
parent71940e0a8a87ec685b338384ff5b4d98c3d926c1 (diff)
downloadrust-26e69a88167bd68ad65b22d5ca013f1270b163be.tar.gz
rust-26e69a88167bd68ad65b22d5ca013f1270b163be.zip
compiler: replace cstr macro with c str literals in compiler and few other c str replacements
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 798014d668e..8a82a156f3c 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);