diff options
| -rw-r--r-- | lld/ELF/InputSection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 36ab5ee6963..f0d978b2bea 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -582,7 +582,7 @@ template <class ELFT> void MergeInputSection<ELFT>::splitIntoPieces() { else this->Pieces = splitNonStrings(Data, EntSize); - if (Config->GcSections && this->getSectionHdr()->sh_flags & SHF_ALLOC) + if (Config->GcSections && (this->getSectionHdr()->sh_flags & SHF_ALLOC)) for (uintX_t Off : LiveOffsets) this->getSectionPiece(Off)->Live = true; } |

