Skip to content

Commit 8a4cebd

Browse files
committed
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 <[email protected]>
1 parent e31addf commit 8a4cebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/back/write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ unsafe extern "C" fn diagnostic_handler(info: DiagnosticInfoRef, user: *mut c_vo
502502
let msg = llvm::build_string(|s| {
503503
llvm::LLVMRustWriteDiagnosticInfoToString(diagnostic_ref, s)
504504
}).expect("non-UTF8 PGO diagnostic");
505-
diag_handler.note_without_error(&msg);
505+
diag_handler.warn(&msg);
506506
}
507507
llvm::diagnostic::UnknownDiagnostic(..) => {},
508508
}

0 commit comments

Comments
 (0)