[llvm] r221867 - Object, COFF: Clean up formatting in hasExtendedRelocations

David Majnemer david.majnemer at gmail.com
Wed Nov 12 23:42:06 PST 2014


Author: majnemer
Date: Thu Nov 13 01:42:05 2014
New Revision: 221867

URL: http://llvm.org/viewvc/llvm-project?rev=221867&view=rev
Log:
Object, COFF: Clean up formatting in hasExtendedRelocations

No functionality changed intended.

Modified:
    llvm/trunk/include/llvm/Object/COFF.h

Modified: llvm/trunk/include/llvm/Object/COFF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/COFF.h?rev=221867&r1=221866&r2=221867&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/COFF.h (original)
+++ llvm/trunk/include/llvm/Object/COFF.h Thu Nov 13 01:42:05 2014
@@ -375,9 +375,9 @@ struct coff_section {
   // Returns true if the actual number of relocations is stored in
   // VirtualAddress field of the first relocation table entry.
   bool hasExtendedRelocations() const {
-    return Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL &&
-        NumberOfRelocations == UINT16_MAX;
-  };
+    return (Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) &&
+           NumberOfRelocations == UINT16_MAX;
+  }
 };
 
 struct coff_relocation {





More information about the llvm-commits mailing list