llvm-wrapper: fix warning C4244
llvm-wrapper/RustWrapper.cpp(1234): warning C4244: '=': conversion from 'uint64_t' to 'unsigned int', possible loss of data nice consistency: uint64_t6009708b43/llvm/include/llvm/IR/DiagnosticInfo.h (L172)
but unsigned6009708b43/llvm/include/llvm/IR/DiagnosticInfo.h (L1091)
This commit is contained in:
parent
bea5bebf3d
commit
205cfcba20
4 changed files with 7 additions and 7 deletions
|
@ -123,7 +123,7 @@ impl SrcMgrDiagnostic {
|
|||
#[derive(Clone)]
|
||||
pub struct InlineAsmDiagnostic {
|
||||
pub level: super::DiagnosticLevel,
|
||||
pub cookie: c_uint,
|
||||
pub cookie: u64,
|
||||
pub message: String,
|
||||
pub source: Option<(String, Vec<InnerSpan>)>,
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ impl InlineAsmDiagnostic {
|
|||
let smdiag = SrcMgrDiagnostic::unpack(super::LLVMRustGetSMDiagnostic(di, &mut cookie));
|
||||
InlineAsmDiagnostic {
|
||||
level: smdiag.level,
|
||||
cookie,
|
||||
cookie: cookie.into(),
|
||||
message: smdiag.message,
|
||||
source: smdiag.source,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue