Skip to content

Commit

Permalink
LLVM Error objects actually need to be consumed before their destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
metthal committed Sep 19, 2023
1 parent b9791c8 commit daed200
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 daed200

Please sign in to comment.