Fix unused variable in r375066
authorDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 17 Oct 2019 01:21:40 +0000 (01:21 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 17 Oct 2019 01:21:40 +0000 (01:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375070 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/GlobalISel/CombinerHelper.cpp

index e320fb32dc09f11bcad941a3631e4d28b67700ee..20c6d13dfc0633f81f9ae96602c79bd4e549fbed 100644 (file)
@@ -135,8 +135,8 @@ bool CombinerHelper::matchCombineConcatVectors(MachineInstr &MI, bool &IsUndef,
         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.