We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b161e8d commit 9bb9206Copy full SHA for 9bb9206
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -600,7 +600,7 @@ struct BubbleDownVectorBitCastForExtract
600
601
// Get the first element of the mixed position as integer.
602
auto mixedPos = extractOp.getMixedPosition();
603
- if (mixedPos.size() > 0 && !isa<Attribute>(mixedPos[0]))
+ if (!mixedPos.empty() && !isa<Attribute>(mixedPos[0]))
604
return failure();
605
uint64_t index = cast<IntegerAttr>(cast<Attribute>(mixedPos[0])).getInt();
606
0 commit comments