Skip to content

[stable/21.x] clang: Adjust for MSVC's default underlying type for enums #11120

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

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

AnthonyLatsis
Copy link

🤷🏼‍♂️

10:26:31  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\clang\lib\Driver\BoundsSafetyArgs.cpp(196): error C2672: 'llvm::has_single_bit': no matching overloaded function found
10:26:34  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\llvm\include\llvm/ADT/bit.h(147): note: could be 'bool llvm::has_single_bit(T) noexcept'
10:26:34  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\clang\lib\Driver\BoundsSafetyArgs.cpp(196): note: 'bool llvm::has_single_bit(T) noexcept': could not deduce template argument for '<unnamed-symbol>'
10:26:34  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\llvm\include\llvm/ADT/bit.h(146): note: 'std::enable_if_t<false,void>' : Failed to specialize alias template

```
10:26:31  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\clang\lib\Driver\BoundsSafetyArgs.cpp(196): error C2672: 'llvm::has_single_bit': no matching overloaded function found
10:26:34  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\llvm\include\llvm/ADT/bit.h(147): note: could be 'bool llvm::has_single_bit(T) noexcept'
10:26:34  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\clang\lib\Driver\BoundsSafetyArgs.cpp(196): note: 'bool llvm::has_single_bit(T) noexcept': could not deduce template argument for '<unnamed-symbol>'
10:26:34  C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\llvm-project\llvm\include\llvm/ADT/bit.h(146): note: 'std::enable_if_t<false,void>' : Failed to specialize alias template
```
@AnthonyLatsis AnthonyLatsis changed the title [stable/21.x] clang: Help MSVC deduce a template argument clang: Adjust for MSVC's default underlying type for enums Aug 5, 2025
@AnthonyLatsis AnthonyLatsis merged commit dd5c22c into stable/21.x Aug 5, 2025
@AnthonyLatsis AnthonyLatsis deleted the jepa-stable branch August 5, 2025 16:43
@AnthonyLatsis AnthonyLatsis changed the title clang: Adjust for MSVC's default underlying type for enums [stable/21.x] clang: Adjust for MSVC's default underlying type for enums Aug 5, 2025
@AnthonyLatsis
Copy link
Author

This had already been fixed on next, albeit using a different underlying type. Aligned in #11128.

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.

1 participant