Skip to content

Commit 655fd1f

Browse files
committed
Address code review comment
1 parent ba795c7 commit 655fd1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/Dialect/IR/CIRDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ OpFoldResult cir::VecCmpOp::fold(FoldAdaptor adaptor) {
16021602
uint64_t vecSize = lhsVecElhs.size();
16031603

16041604
SmallVector<mlir::Attribute, 16> elements(vecSize);
1605-
bool isIntAttr = vecSize ? mlir::isa<cir::IntAttr>(lhsVecElhs[0]) : false;
1605+
bool isIntAttr = vecSize && mlir::isa<cir::IntAttr>(lhsVecElhs[0]);
16061606
for (uint64_t i = 0; i < vecSize; i++) {
16071607
mlir::Attribute lhsAttr = lhsVecElhs[i];
16081608
mlir::Attribute rhsAttr = rhsVecElhs[i];

0 commit comments

Comments
 (0)