Files
swift-mirror/lib/AST/PlatformKind.cpp
Peter Cooper 72fad53a39 Remove allocations due to copying target Triple to local variable.
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
2023-11-06 16:45:43 -08:00

8.0 KiB