[clang] [Clang] Fix assertion when __block is used on global variables in C mode (PR #194856)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 09:12:06 PDT 2026


================
@@ -573,6 +573,7 @@ Bug Fixes to AST Handling
 - Fixed a bug where explicit nullability property attributes were not stored in AST nodes in Objective-C. (#GH179703)
 - Fixed a crash when parsing Doxygen ``@param`` commands attached to invalid declarations or non-function entities. (#GH182737)
 - Fixed the SourceLocation and SourceRange of reversed rewritten CXXOperatorCallExpr. (#GH192467)
+- Fixed a assertion when __block is used on global variables in C mode. (#GH183974)
----------------
AaronBallman wrote:

```suggestion
- Fixed a assertion when ``__block`` is used on global variables in C mode. (#GH183974)
```

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


More information about the cfe-commits mailing list