[lld] r312494 - [MIPS] Add curly brackets to improve code readability. NFC.

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 4 09:16:42 PDT 2017


Author: atanasyan
Date: Mon Sep  4 09:16:41 2017
New Revision: 312494

URL: http://llvm.org/viewvc/llvm-project?rev=312494&view=rev
Log:
[MIPS] Add curly brackets to improve code readability. NFC.

Modified:
    lld/trunk/ELF/Arch/Mips.cpp

Modified: lld/trunk/ELF/Arch/Mips.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Arch/Mips.cpp?rev=312494&r1=312493&r2=312494&view=diff
==============================================================================
--- lld/trunk/ELF/Arch/Mips.cpp (original)
+++ lld/trunk/ELF/Arch/Mips.cpp Mon Sep  4 09:16:41 2017
@@ -318,9 +318,9 @@ void MIPS<ELFT>::relocateOne(uint8_t *Lo
     // The R_MIPS_GOT16 relocation's value in "relocatable" linking mode
     // is updated addend (not a GOT index). In that case write high 16 bits
     // to store a correct addend value.
-    if (Config->Relocatable)
+    if (Config->Relocatable) {
       writeRelocation<E, 16, 16>(Loc, Val + 0x8000);
-    else {
+    } else {
       checkInt<16>(Loc, Val, Type);
       writeRelocation<E, 16, 0>(Loc, Val);
     }




More information about the llvm-commits mailing list