[ELF][MIPS] Follow-up to r298272. Fix typo to fix buildbot.
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 20 Mar 2017 20:49:44 +0000 (20:49 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 20 Mar 2017 20:49:44 +0000 (20:49 +0000)
llvm-svn: 298304

lld/ELF/SyntheticSections.cpp

index 224ceed..736100f 100644 (file)
@@ -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);