[llvm] r348581 - Fix gcc7.3 -Wparentheses warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 7 03:10:03 PST 2018
Author: rksimon
Date: Fri Dec 7 03:10:03 2018
New Revision: 348581
URL: http://llvm.org/viewvc/llvm-project?rev=348581&view=rev
Log:
Fix gcc7.3 -Wparentheses warning. NFCI.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp?rev=348581&r1=348580&r2=348581&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp Fri Dec 7 03:10:03 2018
@@ -2899,9 +2899,9 @@ bool HexagonInstrInfo::getMemOperandWith
const TargetRegisterInfo *TRI) const {
unsigned AccessSize = 0;
BaseOp = getBaseAndOffset(LdSt, Offset, AccessSize);
- assert(!BaseOp || BaseOp->isReg() &&
- "getMemOperandWithOffset only supports base "
- "operands of type register.");
+ assert((!BaseOp || BaseOp->isReg()) &&
+ "getMemOperandWithOffset only supports base "
+ "operands of type register.");
return BaseOp != nullptr;
}
More information about the llvm-commits
mailing list