summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-04 12:24:10 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-04 12:24:10 +0000
commit58d44235e5026a9ee3275b6db12a2115caf7b90f (patch)
tree1fd497b2ae3a114a6de1702b2dffd3c9f80ba4b3 /llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
parentb1d6db7693b65dfe5040fc424e10e008afc7bb6c (diff)
downloadbcm5719-llvm-58d44235e5026a9ee3275b6db12a2115caf7b90f.tar.gz
bcm5719-llvm-58d44235e5026a9ee3275b6db12a2115caf7b90f.zip
Fix -Wparentheses warning. NFCI.
llvm-svn: 348254
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 14fbbe741c9..ed96d00cfe6 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -2382,9 +2382,8 @@ bool AArch64InstrInfo::shouldClusterMemOps(MachineOperand &BaseOp1,
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())
OpenPOWER on IntegriCloud