From cf89bf547ef82c457c09d6fb78fc1da83681d484 Mon Sep 17 00:00:00 2001 From: Daniel Sanders <daniel_l_sanders@apple.com> Date: Thu, 17 Oct 2019 01:21:40 +0000 Subject: [PATCH] Fix unused variable in r375066 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375070 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/GlobalISel/CombinerHelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/lib/CodeGen/GlobalISel/CombinerHelper.cpp index e320fb32dc0..20c6d13dfc0 100644 --- a/lib/CodeGen/GlobalISel/CombinerHelper.cpp +++ b/lib/CodeGen/GlobalISel/CombinerHelper.cpp @@ -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. -- 2.40.0