[stdlib] Annotate types with @_fixed_layout

This will allows us to build the standard library in resilient mode by
default, hopefully, without performance regression.

<rdar://problem/36362648>
This commit is contained in:
Max Moiseev
2018-01-09 14:17:17 -08:00
parent c756652a91
commit 5650f80937
25 changed files with 55 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
//===----------------------------------------------------------------------===//
extension Unicode {
/// The result of attempting to parse a `T` from some input.
@_fixed_layout // FIXME(sil-serialize-all)
public enum ParseResult<T> {
/// A `T` was parsed successfully
case valid(T)