Skip to content

Commit

Permalink
Merge pull request avast#1178 from avast/llvm-consume-errors
Browse files Browse the repository at this point in the history
LLVM Error objects actually need to be consumed before their destruction
  • Loading branch information
metthal authored Sep 20, 2023
2 parents b9791c8 + daed200 commit ce18766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fileformat/file_format/macho/macho_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,7 @@ void MachOFormat::dyldInfoCommand(const llvm::object::MachOObjectFile::LoadComma
if (err)
{
// ignore errors
consumeError(std::move(err));
}
}

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

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

Expand All @@ -1043,6 +1046,7 @@ void MachOFormat::dyldInfoCommand(const llvm::object::MachOObjectFile::LoadComma
if (err)
{
// ignore errors
consumeError(std::move(err));
}
}
}
Expand Down

0 comments on commit ce18766

Please sign in to comment.