[lld] r234868 - Remove excessive parentheses.
Rui Ueyama
ruiu at google.com
Tue Apr 14 00:09:05 PDT 2015
Author: ruiu
Date: Tue Apr 14 02:09:05 2015
New Revision: 234868
URL: http://llvm.org/viewvc/llvm-project?rev=234868&view=rev
Log:
Remove excessive parentheses.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp?rev=234868&r1=234867&r2=234868&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp Tue Apr 14 02:09:05 2015
@@ -35,11 +35,11 @@ typedef struct {
inline uint32_t findv4bitmask(uint8_t *location) {
uint32_t insn = llvm::support::endian::read32le(location);
for (int32_t i = 0, e = llvm::array_lengthof(insn_encodings); i < e; i++) {
- if (((insn & 0xc000) == 0) && !(insn_encodings[i].isDuplex))
+ if ((insn & 0xc000) == 0 && !insn_encodings[i].isDuplex)
continue;
- if (((insn & 0xc000) != 0) && (insn_encodings[i].isDuplex))
+ if ((insn & 0xc000) != 0 && insn_encodings[i].isDuplex)
continue;
- if (((insn_encodings[i].insnMask) & insn) == insn_encodings[i].insnCmpMask)
+ if ((insn_encodings[i].insnMask & insn) == insn_encodings[i].insnCmpMask)
return insn_encodings[i].insnBitMask;
}
llvm_unreachable("found unknown Hexagon instruction");
More information about the llvm-commits
mailing list