[llvm] r348254 - Fix -Wparentheses warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 4 04:24:10 PST 2018


Author: rksimon
Date: Tue Dec  4 04:24:10 2018
New Revision: 348254

URL: http://llvm.org/viewvc/llvm-project?rev=348254&view=rev
Log:
Fix -Wparentheses warning. NFCI.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=348254&r1=348253&r2=348254&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Tue Dec  4 04:24:10 2018
@@ -2382,9 +2382,8 @@ bool AArch64InstrInfo::shouldClusterMemO
   if (BaseOp1.getType() != BaseOp2.getType())
     return false;
 
-  assert(BaseOp1.isReg() ||
-         BaseOp1.isFI() &&
-             "Only base registers and frame indices are supported.");
+  assert((BaseOp1.isReg() || BaseOp1.isFI()) &&
+         "Only base registers and frame indices are supported.");
 
   // Check for both base regs and base FI.
   if (BaseOp1.isReg() && BaseOp1.getReg() != BaseOp2.getReg())




More information about the llvm-commits mailing list