1
Fork 0

update messages

This commit is contained in:
Dan 2024-04-03 19:03:12 -04:00
parent 6ec953c5ea
commit 19758714ca
No known key found for this signature in database
GPG key ID: 3D249E838D75090F
5 changed files with 5 additions and 5 deletions

View file

@ -147,7 +147,7 @@ LLVMRustArchiveChildName(LLVMRustArchiveChildConstRef Child, size_t *Size) {
Expected<StringRef> NameOrErr = Child->getName();
if (!NameOrErr) {
// rustc_codegen_llvm currently doesn't use this error string, but it might be
// useful in the future, and in the mean time this tells LLVM that the
// useful in the future, and in the meantime this tells LLVM that the
// error was not ignored and that it shouldn't abort the process.
LLVMRustSetLastError(toString(NameOrErr.takeError()).c_str());
return nullptr;