Add parantheses to silence warning.

This commit is contained in:
Amara Emerson 2022-09-06 15:17:40 +01:00
parent 7d63983c65
commit fe7c3b87ce
1 changed files with 3 additions and 3 deletions

View File

@ -2333,9 +2333,9 @@ bool CombinerHelper::matchUndefSelectCmp(MachineInstr &MI) {
}
bool CombinerHelper::matchInsertExtractVecEltOutOfBounds(MachineInstr &MI) {
assert(MI.getOpcode() == TargetOpcode::G_INSERT_VECTOR_ELT ||
MI.getOpcode() == TargetOpcode::G_EXTRACT_VECTOR_ELT &&
"Expected an insert/extract element op");
assert((MI.getOpcode() == TargetOpcode::G_INSERT_VECTOR_ELT ||
MI.getOpcode() == TargetOpcode::G_EXTRACT_VECTOR_ELT) &&
"Expected an insert/extract element op");
LLT VecTy = MRI.getType(MI.getOperand(1).getReg());
unsigned IdxIdx =
MI.getOpcode() == TargetOpcode::G_EXTRACT_VECTOR_ELT ? 2 : 3;