Fix warning introduced by 9c766f4090

This commit is contained in:
David Sherwood 2021-05-26 09:59:45 +01:00
parent a3b3f7e631
commit 70d8365e33
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ Instruction *InstCombinerImpl::visitExtractElementInst(ExtractElementInst &EI) {
SmallVector<Value *> NewOps;
for (unsigned I = 1; I != GEP->getNumOperands(); ++I) {
Value *Op = GEP->getOperand(I);
if (auto *OpTy = dyn_cast<VectorType>(Op->getType()))
if (isa<VectorType>(Op->getType()))
NewOps.push_back(Builder.CreateExtractElement(Op, IndexC));
else
NewOps.push_back(Op);