Skip to content

Commit 992d769

Browse files
committed
Address code review comments
1 parent 82b6a05 commit 992d769

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,16 @@ class ComplexExprEmitter : public StmtVisitor<ComplexExprEmitter, mlir::Value> {
166166
return cgf.emitComplexPrePostIncDec(e, lv, isInc, isPre);
167167
}
168168
mlir::Value VisitUnaryPostDec(const UnaryOperator *e) {
169-
return VisitPrePostIncDec(e, false, false);
169+
return VisitPrePostIncDec(e, /*isInc=*/false, /*isPre=*/false);
170170
}
171171
mlir::Value VisitUnaryPostInc(const UnaryOperator *e) {
172-
return VisitPrePostIncDec(e, true, false);
172+
return VisitPrePostIncDec(e, /*isInc=*/true, /*isPre=*/false);
173173
}
174174
mlir::Value VisitUnaryPreDec(const UnaryOperator *e) {
175-
return VisitPrePostIncDec(e, false, true);
175+
return VisitPrePostIncDec(e, /*isInc=*/false, /*isPre=*/true);
176176
}
177177
mlir::Value VisitUnaryPreInc(const UnaryOperator *e) {
178-
return VisitPrePostIncDec(e, true, true);
178+
return VisitPrePostIncDec(e, /*isInc=*/true, /*isPre=*/true);
179179
}
180180
mlir::Value VisitUnaryDeref(const Expr *e) { return emitLoadOfLValue(e); }
181181

@@ -1060,4 +1060,4 @@ LValue CIRGenFunction::emitScalarCompoundAssignWithComplex(
10601060
LValue ret = ComplexExprEmitter(*this).emitCompoundAssignLValue(e, op, val);
10611061
result = val.getScalarVal();
10621062
return ret;
1063-
}
1063+
}

0 commit comments

Comments
 (0)