summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/ICF.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/ICF.cpp b/lld/ELF/ICF.cpp
index 9ede87733d2..8822c8f63bf 100644
--- a/lld/ELF/ICF.cpp
+++ b/lld/ELF/ICF.cpp
@@ -267,9 +267,6 @@ bool ICF<ELFT>::constantEq(const InputSection *SecA, ArrayRef<RelTy> RA,
if (!DA->Section || !DB->Section)
return false;
- if (DA->Section->kind() != DB->Section->kind())
- return false;
-
// Relocations referring to InputSections are constant-equal if their
// section offsets are equal.
if (isa<InputSection>(DA->Section)) {
OpenPOWER on IntegriCloud