Skip to content

IRGen/Runtime: Fix discrepancies in Borrow type layout.#87046

Merged
jckarter merged 1 commit intoswiftlang:mainfrom
jckarter:borrow-layout-sync
Feb 10, 2026
Merged

IRGen/Runtime: Fix discrepancies in Borrow type layout.#87046
jckarter merged 1 commit intoswiftlang:mainfrom
jckarter:borrow-layout-sync

Conversation

@jckarter
Copy link
Contributor

@jckarter jckarter commented Feb 6, 2026

On the compiler side, Borrow ought to use extra inhabitants from its value representation, or at least the null pointer for the pointer representation.

On the runtime side, the choice of representation needs to take size into account.

@jckarter
Copy link
Contributor Author

jckarter commented Feb 6, 2026

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Feb 9, 2026

@swift-ci Please test

1 similar comment
@jckarter
Copy link
Contributor Author

jckarter commented Feb 9, 2026

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Feb 9, 2026

@swift-ci Please test Windows

@jckarter
Copy link
Contributor Author

jckarter commented Feb 9, 2026

@swift-ci Please test

On the compiler side, `Borrow` ought to use extra inhabitants from its value
representation, or at least the null pointer for the pointer representation.

On the runtime side, the choice of representation needs to take size into
account.
@jckarter
Copy link
Contributor Author

jckarter commented Feb 9, 2026

@swift-ci Please test

@jckarter jckarter merged commit 1ddd222 into swiftlang:main Feb 10, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants