Add parantheses to silence warning.
authorAmara Emerson <amara@apple.com>
Tue, 6 Sep 2022 14:17:40 +0000 (15:17 +0100)
committerAmara Emerson <amara@apple.com>
Tue, 6 Sep 2022 14:36:19 +0000 (15:36 +0100)
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

index 5b37cf4..3d4bc78 100644 (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;