Improved error message for failed bitcode load

"bc" is an unnecessary shorthand that obfuscates the compilation error
This commit is contained in:
Joe 2022-03-06 15:25:05 +01:00 committed by GitHub
parent ad0d1d71d3
commit 65ec4dd904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -317,7 +317,7 @@ fn fat_lto(
info!("linking {:?}", name);
let data = bc_decoded.data();
linker.add(data).map_err(|()| {
let msg = format!("failed to load bc of {:?}", name);
let msg = format!("failed to load bitcode of module {:?}", name);
write::llvm_err(diag_handler, &msg)
})?;
serialized_bitcode.push(bc_decoded);