1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

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 516a32fa5d
commit 1ad3046b4f

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;