Skip to content

Commit ac91584

Browse files
mmhaandykaylor
andauthored
Update clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
Co-authored-by: Andy Kaylor <[email protected]>
1 parent 91a24b7 commit ac91584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static void lowerArrayDtorCtorIntoLoop(cir::CIRBaseBuilderTy &builder,
114114
[&](mlir::OpBuilder &b, mlir::Location loc) {
115115
auto currentElement = b.create<cir::LoadOp>(loc, eltTy, tmpAddr);
116116
mlir::Type boolTy = cir::BoolType::get(b.getContext());
117-
auto cmp = builder.create<cir::CmpOp>(loc, boolTy, cir::CmpOpKind::eq,
117+
auto cmp = builder.create<cir::CmpOp>(loc, boolTy, cir::CmpOpKind::ne,
118118
currentElement, end);
119119
builder.createCondition(cmp);
120120
},

0 commit comments

Comments
 (0)