From 812293ae1d44855bd09b90bcef94113855606d80 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 4 Feb 2016 23:39:35 +0000 Subject: [PATCH] Simplify. NFC. llvm-svn: 259848 --- lld/ELF/OutputSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4