[llvm] eab395f - Fix the warning after D118805

Djordje Todorovic via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 7 00:26:28 PST 2022


Author: Djordje Todorovic
Date: 2022-02-07T09:25:02+01:00
New Revision: eab395fa4074a5a0cbfebe811937dbb1816df9ef

URL: https://github.com/llvm/llvm-project/commit/eab395fa4074a5a0cbfebe811937dbb1816df9ef
DIFF: https://github.com/llvm/llvm-project/commit/eab395fa4074a5a0cbfebe811937dbb1816df9ef.diff

LOG: Fix the warning after D118805

A variable was used within assert() only.

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 e9bec116cc87a..7729702acc78d 100644
--- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@ -4619,6 +4619,7 @@ bool CombinerHelper::matchMulOBy2(MachineInstr &MI, BuildFnTy &MatchInfo) {
 bool CombinerHelper::matchMulOBy0(MachineInstr &MI, BuildFnTy &MatchInfo) {
   // (G_*MULO x, 0) -> 0 + no carry out
   unsigned Opc = MI.getOpcode();
+  (void)Opc;
   assert(Opc == TargetOpcode::G_UMULO || Opc == TargetOpcode::G_SMULO);
   if (!mi_match(MI.getOperand(3).getReg(), MRI, m_SpecificICstOrSplat(0)))
     return false;


        


More information about the llvm-commits mailing list