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
This commit is contained in:
Jessica Paquette 2019-07-03 18:30:01 +00:00
parent 1c478d6e85
commit 6584109389
1 changed files with 2 additions and 1 deletions

View File

@ -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;