Fix unused variable in r375066

llvm-svn: 375070
This commit is contained in:
Daniel Sanders 2019-10-17 01:21:40 +00:00
parent 15984457a6
commit 149a020425
1 changed files with 2 additions and 2 deletions

View 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.