Skip to content

Commit be5d425

Browse files
committed
Remove unnecessary assert
1 parent cda7e88 commit be5d425

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/DirectX/DXILDataScalarization.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ bool DataScalarizerVisitor::visitExtractElementInst(ExtractElementInst &EEI) {
181181

182182
IRBuilder<> Builder(&EEI);
183183
VectorType *VecTy = EEI.getVectorOperandType();
184-
assert(VecTy->getElementCount().isFixed() &&
185-
"Vector operand of ExtractElement must have a fixed size");
186-
184+
187185
Type *ArrTy = equivalentArrayTypeFromVector(VecTy);
188186
Value *ArrAlloca = Builder.CreateAlloca(ArrTy);
189187

0 commit comments

Comments
 (0)