summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2019-07-03 18:30:01 +0000
committerJessica Paquette <jpaquette@apple.com>2019-07-03 18:30:01 +0000
commit65841093897c66b3159e913593ffbbbd03985d2c (patch)
tree74701f23071fc722ddd3f9f7eccf4aa4f80ecdfe
parent1c478d6e85ce0788f37e7a874ea549f2e58540ee (diff)
downloadbcm5719-llvm-65841093897c66b3159e913593ffbbbd03985d2c.tar.gz
bcm5719-llvm-65841093897c66b3159e913593ffbbbd03985d2c.zip
Fix precedence in assert from r364961
Precedence was wrong in an assert added in r364961. Add braces around the assertion condition to make it right. See: https://reviews.llvm.org/D64084 llvm-svn: 365069
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
index eaae7201a40..46d6ccb7c2a 100644
--- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
@@ -2935,7 +2935,8 @@ MachineInstr *AArch64InstructionSelector::emitIntegerCompare(
Register ZReg;
LLT CmpTy = MRI.getType(LHS.getReg());
- assert(CmpTy.isScalar() || CmpTy.isPointer() && "Expected scalar or pointer");
+ assert((CmpTy.isScalar() || CmpTy.isPointer()) &&
+ "Expected scalar or pointer");
if (CmpTy == LLT::scalar(32)) {
CmpOpc = AArch64::SUBSWrr;
ZReg = AArch64::WZR;
OpenPOWER on IntegriCloud