@@ -36,7 +36,7 @@ use rustc_span::InnerSpan;
3636use rustc_target:: spec:: { CodeModel , RelocModel , SanitizerSet , SplitDebuginfo , TlsModel } ;
3737
3838use crate :: llvm:: diagnostic:: OptimizationDiagnosticKind ;
39- use libc:: { c_char, c_int, c_uint , c_void, size_t} ;
39+ use libc:: { c_char, c_int, c_void, size_t} ;
4040use std:: ffi:: CString ;
4141use std:: fs;
4242use std:: io:: { self , Write } ;
@@ -406,7 +406,7 @@ fn report_inline_asm(
406406 cgcx : & CodegenContext < LlvmCodegenBackend > ,
407407 msg : String ,
408408 level : llvm:: DiagnosticLevel ,
409- mut cookie : c_uint ,
409+ mut cookie : u64 ,
410410 source : Option < ( String , Vec < InnerSpan > ) > ,
411411) {
412412 // In LTO build we may get srcloc values from other crates which are invalid
@@ -420,7 +420,7 @@ fn report_inline_asm(
420420 llvm:: DiagnosticLevel :: Warning => Level :: Warning ,
421421 llvm:: DiagnosticLevel :: Note | llvm:: DiagnosticLevel :: Remark => Level :: Note ,
422422 } ;
423- cgcx. diag_emitter . inline_asm_error ( cookie as u32 , msg, level, source) ;
423+ cgcx. diag_emitter . inline_asm_error ( cookie. try_into ( ) . unwrap ( ) , msg, level, source) ;
424424}
425425
426426unsafe extern "C" fn diagnostic_handler ( info : & DiagnosticInfo , user : * mut c_void ) {
0 commit comments