From: Rui Ueyama Date: Thu, 4 Feb 2016 23:39:35 +0000 (+0000) Subject: Simplify. NFC. X-Git-Tag: llvmorg-3.9.0-rc1~15056 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=812293ae1d44855bd09b90bcef94113855606d80;p=platform%2Fupstream%2Fllvm.git Simplify. NFC. llvm-svn: 259848 --- diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index f1189e6..1d33818 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -91,9 +91,9 @@ template bool GotSection::addDynTlsEntry(SymbolBody *Sym) { template bool GotSection::addCurrentModuleTlsIndex() { if (LocalTlsIndexOff != uint32_t(-1)) return false; + LocalTlsIndexOff = Entries.size() * sizeof(uintX_t); Entries.push_back(nullptr); Entries.push_back(nullptr); - LocalTlsIndexOff = (Entries.size() - 2) * sizeof(uintX_t); return true; }