[ELF] EhInputSection::split: remove unneeded check
authorFangrui Song <i@maskray.me>
Mon, 17 Jan 2022 21:59:51 +0000 (13:59 -0800)
committerFangrui Song <i@maskray.me>
Mon, 17 Jan 2022 21:59:52 +0000 (13:59 -0800)
lld/ELF/InputSection.cpp

index feeb290..db439c3 100644 (file)
@@ -1340,9 +1340,6 @@ void EhInputSection::split(ArrayRef<RelTy> rels) {
   for (size_t off = 0, end = data().size(); off != end;) {
     size_t size = readEhRecordSize(this, off);
     pieces.emplace_back(off, this, size, getReloc(off, size, rels, relI));
-    // The empty record is the end marker.
-    if (size == 4)
-      break;
     off += size;
   }
 }