File tree 2 files changed +3
-4
lines changed
compiler/rustc_codegen_llvm/src
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use smallvec::SmallVec;
14
14
use tracing:: debug;
15
15
16
16
use crate :: builder:: Builder ;
17
- use crate :: common:: { AsCCharPtr , Funclet } ;
17
+ use crate :: common:: Funclet ;
18
18
use crate :: context:: CodegenCx ;
19
19
use crate :: type_:: Type ;
20
20
use crate :: type_of:: LayoutLlvmExt ;
@@ -477,8 +477,7 @@ pub(crate) fn inline_asm_call<'ll>(
477
477
debug ! ( "Asm Output Type: {:?}" , output) ;
478
478
let fty = bx. cx . type_func ( & argtys, output) ;
479
479
// Ask LLVM to verify that the constraints are well-formed.
480
- let constraints_ok =
481
- unsafe { llvm:: LLVMRustInlineAsmVerify ( fty, cons. as_c_char_ptr ( ) , cons. len ( ) ) } ;
480
+ let constraints_ok = unsafe { llvm:: LLVMRustInlineAsmVerify ( fty, cons. as_ptr ( ) , cons. len ( ) ) } ;
482
481
debug ! ( "constraint verification result: {:?}" , constraints_ok) ;
483
482
if constraints_ok {
484
483
let v = unsafe {
Original file line number Diff line number Diff line change @@ -2013,7 +2013,7 @@ unsafe extern "C" {
2013
2013
2014
2014
pub ( crate ) fn LLVMRustInlineAsmVerify (
2015
2015
Ty : & Type ,
2016
- Constraints : * const c_char ,
2016
+ Constraints : * const c_uchar , // See "PTR_LEN_STR".
2017
2017
ConstraintsLen : size_t ,
2018
2018
) -> bool ;
2019
2019
You can’t perform that action at this time.
0 commit comments