mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This allows an elegant design in which we can still allocate RawSyntax nodes using a bump allocator but are able to automatically free that buffer once the last RawSyntax node within that buffer is freed. This also resolves a memory leak of RawSyntax nodes that was caused by ParserUnit not freeing its underlying ASTContext.
1.3 KiB
1.3 KiB