[llvm] r231567 - Adding parenthesis around logical expressions to silence a -Wparentheses warning; NFC.
Aaron Ballman
aaron at aaronballman.com
Sat Mar 7 07:16:27 PST 2015
Author: aaronballman
Date: Sat Mar 7 09:16:27 2015
New Revision: 231567
URL: http://llvm.org/viewvc/llvm-project?rev=231567&view=rev
Log:
Adding parenthesis around logical expressions to silence a -Wparentheses warning; NFC.
Modified:
llvm/trunk/tools/dsymutil/DwarfLinker.cpp
Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=231567&r1=231566&r2=231567&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Sat Mar 7 09:16:27 2015
@@ -1270,8 +1270,8 @@ unsigned DwarfLinker::cloneAttribute(DIE
/// \returns wether any reloc has been applied.
bool DwarfLinker::applyValidRelocs(MutableArrayRef<char> Data,
uint32_t BaseOffset, bool isLittleEndian) {
- assert(NextValidReloc == 0 ||
- BaseOffset > ValidRelocs[NextValidReloc - 1].Offset &&
+ assert((NextValidReloc == 0 ||
+ BaseOffset > ValidRelocs[NextValidReloc - 1].Offset) &&
"BaseOffset should only be increasing.");
if (NextValidReloc >= ValidRelocs.size())
return false;
More information about the llvm-commits
mailing list