From 83c7f5d3fb5649af4e57d8b46163b4c0dcfaf263 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 17 Jan 2022 13:59:51 -0800 Subject: [PATCH] [ELF] EhInputSection::split: remove unneeded check --- lld/ELF/InputSection.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index feeb290..db439c3 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -1340,9 +1340,6 @@ void EhInputSection::split(ArrayRef 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; } } -- 2.7.4