Skip to content

Commit 6560137

Browse files
committed
Address code review comment
1 parent ccaff3b commit 6560137

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
@@ -1612,7 +1612,7 @@ OpFoldResult cir::VecCmpOp::fold(FoldAdaptor adaptor) {
16121612
uint64_t vecSize = lhsVecElhs.size();
16131613

16141614
SmallVector<mlir::Attribute, 16> elements(vecSize);
1615-
bool isIntAttr = vecSize ? mlir::isa<cir::IntAttr>(lhsVecElhs[0]) : false;
1615+
bool isIntAttr = vecSize && mlir::isa<cir::IntAttr>(lhsVecElhs[0]);
16161616
for (uint64_t i = 0; i < vecSize; i++) {
16171617
mlir::Attribute lhsAttr = lhsVecElhs[i];
16181618
mlir::Attribute rhsAttr = rhsVecElhs[i];

0 commit comments

Comments
 (0)