Skip to content

Commit 2de3961

Browse files
committed
Addressing code review comment
Signed-off-by: Mohammadreza Ameri Mahabadian <[email protected]>
1 parent 10c30b9 commit 2de3961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/SPIRV/Serialization/Serializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ Serializer::prepareDenseElementsConstant(Location loc, Type constType,
958958
auto elementType = cast<spirv::CompositeType>(constType).getElementType(0);
959959
if (auto tensorArmType = dyn_cast<spirv::TensorArmType>(constType)) {
960960
ArrayRef<int64_t> innerShape = tensorArmType.getShape().drop_front();
961-
if (innerShape.size() > 0)
961+
if (!innerShape.empty())
962962
elementType = spirv::TensorArmType::get(innerShape, elementType);
963963
}
964964

0 commit comments

Comments
 (0)