================
@@ -913,8 +913,7 @@ LValue CIRGenFunction::emitUnaryOpLValue(const 
UnaryOperator *e) {
     assert(e->isPrefix() && "Prefix operator in unexpected state!");
 
     if (e->getType()->isAnyComplexType()) {
-      cgm.errorNYI(e->getSourceRange(), "UnaryOp complex inc/dec");
-      lv = LValue();
+      emitComplexPrePostIncDec(e, lv, kind, true /*isPre=*/);
----------------
andykaylor wrote:

```suggestion
      emitComplexPrePostIncDec(e, lv, kind, /*isPre=*/true);
```

https://github.com/llvm/llvm-project/pull/160201
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to