[llvm] 2293b3f - Fix a typo in my previous commit
Steven Wu via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 11:42:38 PST 2019
Author: Steven Wu
Date: 2019-11-06T11:42:30-08:00
New Revision: 2293b3f169a27232a9f208ae157517b96ff9a4f0
URL: https://github.com/llvm/llvm-project/commit/2293b3f169a27232a9f208ae157517b96ff9a4f0
DIFF: https://github.com/llvm/llvm-project/commit/2293b3f169a27232a9f208ae157517b96ff9a4f0.diff
LOG: Fix a typo in my previous commit
Added:
Modified:
llvm/lib/ObjectYAML/MachOEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjectYAML/MachOEmitter.cpp b/llvm/lib/ObjectYAML/MachOEmitter.cpp
index e0885e0b206b..bda4aed885b4 100644
--- a/llvm/lib/ObjectYAML/MachOEmitter.cpp
+++ b/llvm/lib/ObjectYAML/MachOEmitter.cpp
@@ -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);
More information about the llvm-commits
mailing list