mirror of
https://github.com/avast/retdec.git
synced 2024-11-23 13:00:13 +00:00
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:
commit
ce18766a2a
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user