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
This commit is contained in:
commit
1aa6aefdc9
23 changed files with 67 additions and 96 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue