================
@@ -56,6 +56,26 @@ class ComplexExprEmitter : public
StmtVisitor<ComplexExprEmitter, mlir::Value> {
mlir::Value VisitParenExpr(ParenExpr *e);
mlir::Value
VisitSubstNonTypeTemplateParmExpr(SubstNonTypeTemplateParmExpr *e);
+
+ mlir::Value VisitPrePostIncDec(const UnaryOperator *e, bool isInc,
+ bool isPre);
+
+ mlir::Value VisitUnaryPostDec(const UnaryOperator *e) {
----------------
AmrDeveloper wrote:
I implemented it locally, but I was thinking that there are no checks on unary
op, and anyone can call the function with `cir::UnaryOpKind::Not, Minus or
Plus` and it will generate CIR code that will crash only when we lower to LLVM
🤔, do you think this is the best option or maybe we should rename the booleans
in a better way @xlauko
https://github.com/llvm/llvm-project/pull/149162
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits