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 ccaff3b commit 6560137Copy full SHA for 6560137
clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -1612,7 +1612,7 @@ OpFoldResult cir::VecCmpOp::fold(FoldAdaptor adaptor) {
1612
uint64_t vecSize = lhsVecElhs.size();
1613
1614
SmallVector<mlir::Attribute, 16> elements(vecSize);
1615
- bool isIntAttr = vecSize ? mlir::isa<cir::IntAttr>(lhsVecElhs[0]) : false;
+ bool isIntAttr = vecSize && mlir::isa<cir::IntAttr>(lhsVecElhs[0]);
1616
for (uint64_t i = 0; i < vecSize; i++) {
1617
mlir::Attribute lhsAttr = lhsVecElhs[i];
1618
mlir::Attribute rhsAttr = rhsVecElhs[i];
0 commit comments