Fix a typo in my previous commit

This commit is contained in:
Steven Wu 2019-11-06 11:42:21 -08:00
parent 6740a88dc1
commit 2293b3f169
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ void UniversalWriter::writeMachO(raw_ostream &OS) {
writeFatArchs(OS);
auto &FatFile = *ObjectFile.FatMachO;
assert(FatFile.FatArchs.size() > FatFile.Slices.size() &&
assert(FatFile.FatArchs.size() >= FatFile.Slices.size() &&
"Cannot write Slices if not decribed in FatArches");
for (size_t i = 0; i < FatFile.Slices.size(); i++) {
ZeroToOffset(OS, FatFile.FatArchs[i].offset);