From 149a02042531980ffdad0314922bd10544484d70 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Thu, 17 Oct 2019 01:21:40 +0000 Subject: Fix unused variable in r375066 llvm-svn: 375070 --- llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp index e320fb32dc0..20c6d13dfc0 100644 --- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp +++ b/llvm/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. -- cgit v1.2.3