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 ba795c7 commit 655fd1fCopy full SHA for 655fd1f
clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -1602,7 +1602,7 @@ OpFoldResult cir::VecCmpOp::fold(FoldAdaptor adaptor) {
1602
uint64_t vecSize = lhsVecElhs.size();
1603
1604
SmallVector<mlir::Attribute, 16> elements(vecSize);
1605
- bool isIntAttr = vecSize ? mlir::isa<cir::IntAttr>(lhsVecElhs[0]) : false;
+ bool isIntAttr = vecSize && mlir::isa<cir::IntAttr>(lhsVecElhs[0]);
1606
for (uint64_t i = 0; i < vecSize; i++) {
1607
mlir::Attribute lhsAttr = lhsVecElhs[i];
1608
mlir::Attribute rhsAttr = rhsVecElhs[i];
0 commit comments