[lld] r298304 - [ELF][MIPS] Follow-up to r298272. Fix typo to fix buildbot.

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 13:49:44 PDT 2017


Author: atanasyan
Date: Mon Mar 20 15:49:44 2017
New Revision: 298304

URL: http://llvm.org/viewvc/llvm-project?rev=298304&view=rev
Log:
[ELF][MIPS] Follow-up to r298272. Fix typo to fix buildbot.

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=298304&r1=298303&r2=298304&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Mon Mar 20 15:49:44 2017
@@ -848,7 +848,7 @@ uint64_t MipsGotSection::getGp() const {
 static void writeUint(uint8_t *Buf, uint64_t Val) {
   support::endianness E =
       Config->IsLE ? support::endianness::little : support::endianness::big;
-  if (Config->Wordsize == 0)
+  if (Config->Wordsize == 8)
     write64(Buf, Val, E);
   else
     write32(Buf, Val, E);




More information about the llvm-commits mailing list