[llvm] r375070 - Fix unused variable in r375066

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 18:21:41 PDT 2019


Author: dsanders
Date: Wed Oct 16 18:21:40 2019
New Revision: 375070

URL: http://llvm.org/viewvc/llvm-project?rev=375070&view=rev
Log:
Fix unused variable in r375066

Modified:
    llvm/trunk/lib/CodeGen/GlobalISel/CombinerHelper.cpp

Modified: llvm/trunk/lib/CodeGen/GlobalISel/CombinerHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/CombinerHelper.cpp?rev=375070&r1=375069&r2=375070&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/CombinerHelper.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/CombinerHelper.cpp Wed Oct 16 18:21:40 2019
@@ -135,8 +135,8 @@ bool CombinerHelper::matchCombineConcatV
         Builder.setInsertPt(*MI.getParent(), MI);
         Undef = Builder.buildUndef(OpType.getScalarType());
       }
-      LLT UndefType = MRI.getType(Undef->getOperand(0).getReg());
-      assert(UndefType == OpType.getScalarType() &&
+      assert(MRI.getType(Undef->getOperand(0).getReg()) ==
+                 OpType.getScalarType() &&
              "All undefs should have the same type");
       // Break the undef vector in as many scalar elements as needed
       // for the flattening.




More information about the llvm-commits mailing list