librustc_trans: Turn PGO diagnostics into warnings.
They should at least be that, they usually warn about control flow mismatches, and or the profile being useless, which looks like at least a warning to me. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
e31addf7c3
commit
8a4cebd16f
@ -502,7 +502,7 @@ unsafe extern "C" fn diagnostic_handler(info: DiagnosticInfoRef, user: *mut c_vo
|
||||
let msg = llvm::build_string(|s| {
|
||||
llvm::LLVMRustWriteDiagnosticInfoToString(diagnostic_ref, s)
|
||||
}).expect("non-UTF8 PGO diagnostic");
|
||||
diag_handler.note_without_error(&msg);
|
||||
diag_handler.warn(&msg);
|
||||
}
|
||||
llvm::diagnostic::UnknownDiagnostic(..) => {},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user