summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2019-10-17 01:21:40 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2019-10-17 01:21:40 +0000
commit149a02042531980ffdad0314922bd10544484d70 (patch)
tree847bffed075144ffc7095f54a8095d4cf8824204 /llvm/lib/CodeGen
parent15984457a673eff3969c0755be543e7d572edd47 (diff)
downloadbcm5719-llvm-149a02042531980ffdad0314922bd10544484d70.tar.gz
bcm5719-llvm-149a02042531980ffdad0314922bd10544484d70.zip
Fix unused variable in r375066
llvm-svn: 375070
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp4
1 files changed, 2 insertions, 2 deletions
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.
OpenPOWER on IntegriCloud