forked from OSchip/llvm-project
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:
parent
1c478d6e85
commit
6584109389
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue