diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-07-16 02:47:42 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-07-16 02:47:42 +0000 |
| commit | e9381bd2d8690a7e59013140d8d8506086b03b51 (patch) | |
| tree | b1f3e21fb94cde061b945b80d87961ed90dd2717 /lld/ELF/OutputSections.cpp | |
| parent | f524464e2fdd08e427774bf4b94d5c8959f21cab (diff) | |
| download | bcm5719-llvm-e9381bd2d8690a7e59013140d8d8506086b03b51.tar.gz bcm5719-llvm-e9381bd2d8690a7e59013140d8d8506086b03b51.zip | |
Remove redundant variable.
llvm-svn: 275667
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 4f198d85493..aff063b499e 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1098,9 +1098,8 @@ static void writeCieFde(uint8_t *Buf, ArrayRef<uint8_t> D) { } template <class ELFT> void EhOutputSection<ELFT>::finalize() { - if (Finalized) - return; - Finalized = true; + if (this->Header.sh_size) + return; // Already finalized. size_t Off = 0; for (CieRecord *Cie : Cies) { |

