mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Nullable return Spans did not include __swiftifyOverrideLifetime,
resulting in a lifetime error when returning the Span. Meanwhile return
values for __sized_by did not use the correct label for the call to the
RawSpan initializer, using `count` instead of `byteCount`.
rdar://151804085
rdar://151799287
(cherry picked from commit 526c683)
25 lines
466 B
Plaintext
25 lines
466 B
Plaintext
module CountedByClang {
|
|
header "counted-by.h"
|
|
export *
|
|
}
|
|
module CountedByNoEscapeClang {
|
|
header "counted-by-noescape.h"
|
|
export *
|
|
}
|
|
module SizedByClang {
|
|
header "sized-by.h"
|
|
export *
|
|
}
|
|
module SizedByNoEscapeClang {
|
|
header "sized-by-noescape.h"
|
|
export *
|
|
}
|
|
module SizedByLifetimeboundClang {
|
|
header "sized-by-lifetimebound.h"
|
|
export *
|
|
}
|
|
module CountedByLifetimeboundClang {
|
|
header "counted-by-lifetimebound.h"
|
|
export *
|
|
}
|