[mips][lld] Address post commit review nit.
authorSimon Dardis <simon.dardis@mips.com>
Wed, 21 Feb 2018 20:01:43 +0000 (20:01 +0000)
committerSimon Dardis <simon.dardis@mips.com>
Wed, 21 Feb 2018 20:01:43 +0000 (20:01 +0000)
Address @ruiu's post commit review comment about a value which is intended
to be a unsigned 32 bit integer as using uint32_t rather than unsigned.

llvm-svn: 325713

lld/ELF/Arch/Mips.cpp

index 33ec495..fcf5aff 100644 (file)
@@ -331,9 +331,8 @@ void MIPS<ELFT>::writePlt(uint8_t *Buf, uint64_t GotPltEntryAddr,
     return;
   }
 
-  unsigned JrInst =
-      isMipsR6() ? (Config->ZHazardplt ? 0x03200409 : 0x03200009)
-                 : (Config->ZHazardplt ? 0x03200408 : 0x03200008);
+  uint32_t JrInst = isMipsR6() ? (Config->ZHazardplt ? 0x03200409 : 0x03200009)
+                               : (Config->ZHazardplt ? 0x03200408 : 0x03200008);
 
   write32<E>(Buf, 0x3c0f0000);     // lui   $15, %hi(.got.plt entry)
   write32<E>(Buf + 4, 0x8df90000); // l[wd] $25, %lo(.got.plt entry)($15)