Skip to content

Conversation

@allevato
Copy link
Member

@allevato allevato commented Dec 2, 2025

By calling printCommon twice, this inserts a JSON object into another JSON object without a key. This should assert inside LLVM's JSON helper, but only if the compiler is built with assertions enabled (which Xcode's compiler isn't).

This also fixes the S-expression version, which is similarly busted:

(pattern_entry
  (async_let  type="Int"              (pattern_any type="Int")
  (original_init=call_expr type="Int" ...

By calling `printCommon` twice, this inserts a JSON object into
another JSON object without a key. This asserts inside LLVM's
JSON helper, but only if the compiler is built with assertions
enabled (which Xcode's compiler doesn't).

This also fixes the S-expression version, which is similarly busted:

```
(pattern_entry
  (async_let  type="Int"              (pattern_any type="Int")
  (original_init=call_expr type="Int" ...
```
@allevato
Copy link
Member Author

allevato commented Dec 2, 2025

@swift-ci please smoke test

@allevato allevato merged commit 88081a9 into swiftlang:main Dec 3, 2025
3 checks passed
@allevato allevato deleted the more-json-ast-fixes-2 branch December 3, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant