[Mlir-commits] [mlir] [mlir] Support better printing for mutually recursive types (PR #112160)

Markus Böck llvmlistbot at llvm.org
Sat Oct 26 14:14:37 PDT 2024


================
@@ -505,6 +505,10 @@ Type TestRecursiveAliasType::parse(AsmParser &parser) {
     return rec;
   }
 
+  // Allow incomplete definitions that can be completed later.
+  if (succeeded(parser.parseGreater()))
----------------
zero9178 wrote:

```suggestion
  if (succeeded(parser.parseOptionalGreater()))
```
Surprised this doesn't cause any issues I must admit.

https://github.com/llvm/llvm-project/pull/112160


More information about the Mlir-commits mailing list