From 74c371da7b36f869a052fea3c130d85603d8b6d4 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 7 Dec 2018 11:10:03 +0000 Subject: [PATCH] Fix gcc7.3 -Wparentheses warning. NFCI. llvm-svn: 348581 --- llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp index ff3865b..a0af116 100644 --- a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp @@ -2899,9 +2899,9 @@ bool HexagonInstrInfo::getMemOperandWithOffset( 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; } -- 2.7.4