mirror of
https://github.com/apple/swift.git
synced 2026-03-08 18:24:30 +01:00
The isPlatformActive() function wants to choose between Target and TargetVariant. It currently copies in to a local to do this, but Triple contains strings which result in allocations for the copy. This uses a pointer instead, to avoid the allocations entirely, reducing total allocations in the compiler by 5%. rdar://117879768
8.0 KiB
8.0 KiB