Merge pull request #1178 from avast/llvm-consume-errors

LLVM Error objects actually need to be consumed before their destruction
This commit is contained in:
Marek Milkovič 2023-09-20 15:26:17 +02:00 committed by GitHub
commit ce18766a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -980,6 +980,7 @@ void MachOFormat::dyldInfoCommand(const llvm::object::MachOObjectFile::LoadComma
if (err)
{
// ignore errors
consumeError(std::move(err));
}
}
@ -1005,6 +1006,7 @@ void MachOFormat::dyldInfoCommand(const llvm::object::MachOObjectFile::LoadComma
if (err)
{
// ignore errors
consumeError(std::move(err));
}
}
@ -1024,6 +1026,7 @@ void MachOFormat::dyldInfoCommand(const llvm::object::MachOObjectFile::LoadComma
if (err)
{
// ignore errors
consumeError(std::move(err));
}
}
@ -1043,6 +1046,7 @@ void MachOFormat::dyldInfoCommand(const llvm::object::MachOObjectFile::LoadComma
if (err)
{
// ignore errors
consumeError(std::move(err));
}
}
}