Skip to content

Commit 1f644ff

Browse files
committed
clang: Adjust for MSVC's default underlying type for enums
``` 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 ```
1 parent ecf7d3b commit 1f644ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class LangOptionsBase {
461461
};
462462

463463
/* TODO(BoundsSafety) Deprecate the flag */
464-
enum BoundsSafetyNewChecks {
464+
enum BoundsSafetyNewChecks : uint8_t {
465465
BS_CHK_None = 0,
466466

467467
BS_CHK_AccessSize = 1 << 0, // rdar://72252593

0 commit comments

Comments
 (0)