Skip to content

stdlib: repair 32bit non-Darwin build for TypeLayout #62781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kateinoigakukun
Copy link
Member

glibc's uintptr_t and uint64_t are both unsigned long int, but uint32_t is unsigned int, so BitVector overloads cannot be resoled on 32-bit platforms by following compilation error:

error: call to member function 'add' is ambiguous
bv.add(heap_object_abi::SwiftSpareBitsMask);

darwin 32-bit platforms use stdint types defined in SwiftStdint.h, so they are identical

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves #NNNNN, fix apple/llvm-project#MMMMM.

@kateinoigakukun
Copy link
Member Author

@swift-ci please smoke test

glibc's `uintptr_t` and `uint64_t` are both `unsigned long int`, but `uint32_t`
is `unsigned int`, so BitVector overloads cannot be resoled on 32-bit
platforms by following compilation error:

error: call to member function 'add' is ambiguous
  bv.add(heap_object_abi::SwiftSpareBitsMask);

darwin 32-bit platforms use stdint types defined in SwiftStdint.h, so
they are identical
@kateinoigakukun kateinoigakukun force-pushed the pr-1c50f837dff8c45e643bd7cc67d17b9ad80e3f43 branch from abb1148 to 76981b4 Compare December 27, 2022 06:07
@kateinoigakukun
Copy link
Member Author

@swift-ci please smoke test

@kateinoigakukun
Copy link
Member Author

@swift-ci please test and merge

@swift-ci swift-ci merged commit d5eca6c into swiftlang:main Jan 3, 2023
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