From f5e0b4009591c14f6260d7ed474ec4d4c69826a6 Mon Sep 17 00:00:00 2001 From: Simon Dardis Date: Wed, 21 Feb 2018 20:01:43 +0000 Subject: [PATCH] [mips][lld] Address post commit review nit. 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Arch/Mips.cpp b/lld/ELF/Arch/Mips.cpp index 33ec49530cd3..fcf5affb09ea 100644 --- a/lld/ELF/Arch/Mips.cpp +++ b/lld/ELF/Arch/Mips.cpp @@ -331,9 +331,8 @@ void MIPS::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(Buf, 0x3c0f0000); // lui $15, %hi(.got.plt entry) write32(Buf + 4, 0x8df90000); // l[wd] $25, %lo(.got.plt entry)($15)