[llvm] fe7c3b8 - Add parantheses to silence warning.
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 07:36:29 PDT 2022
Author: Amara Emerson
Date: 2022-09-06T15:36:19+01:00
New Revision: fe7c3b87ce7d6e4ba8972a9eb525c9697faba023
URL: https://github.com/llvm/llvm-project/commit/fe7c3b87ce7d6e4ba8972a9eb525c9697faba023
DIFF: https://github.com/llvm/llvm-project/commit/fe7c3b87ce7d6e4ba8972a9eb525c9697faba023.diff
LOG: Add parantheses to silence warning.
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index 5b37cf4cf1880..3d4bc78a73a77 100644
--- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@ -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;
More information about the llvm-commits
mailing list