[lld] 83c7f5d - [ELF] EhInputSection::split: remove unneeded check

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 17 13:59:56 PST 2022


Author: Fangrui Song
Date: 2022-01-17T13:59:52-08:00
New Revision: 83c7f5d3fb5649af4e57d8b46163b4c0dcfaf263

URL: https://github.com/llvm/llvm-project/commit/83c7f5d3fb5649af4e57d8b46163b4c0dcfaf263
DIFF: https://github.com/llvm/llvm-project/commit/83c7f5d3fb5649af4e57d8b46163b4c0dcfaf263.diff

LOG: [ELF] EhInputSection::split: remove unneeded check

Added: 
    

Modified: 
    lld/ELF/InputSection.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index feeb29057772d..db439c31bccec 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -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;
   }
 }


        


More information about the llvm-commits mailing list