From fe7c3b87ce7d6e4ba8972a9eb525c9697faba023 Mon Sep 17 00:00:00 2001 From: Amara Emerson Date: Tue, 6 Sep 2022 15:17:40 +0100 Subject: [PATCH] Add parantheses to silence warning. --- llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp index 5b37cf4cf188..3d4bc78a73a7 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;