Skip to content

Commit 93f8f02

Browse files
committed
Remove unneeded check
1 parent e0d5478 commit 93f8f02

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,7 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
907907
assert(e->getOpcode() == BO_EQ || e->getOpcode() == BO_NE);
908908

909909
BinOpInfo boInfo = emitBinOps(e);
910-
cir::CmpOpKind opKind =
911-
e->getOpcode() == BO_EQ ? cir::CmpOpKind::eq : cir::CmpOpKind::ne;
912-
result = builder.create<cir::CmpOp>(loc, opKind, boInfo.lhs, boInfo.rhs);
910+
result = builder.create<cir::CmpOp>(loc, kind, boInfo.lhs, boInfo.rhs);
913911
}
914912

915913
return emitScalarConversion(result, cgf.getContext().BoolTy, e->getType(),

0 commit comments

Comments
 (0)