Skip to content

Commit 5f26f53

Browse files
committed
clang-cl now supports [[msvc::no_unique_address]] in version 18
See llvm/llvm-project#49358
1 parent 8d3f0e9 commit 5f26f53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sus/macros/__private/compiler_bugs.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@
9898
// TODO: https://github.com/llvm/llvm-project/issues/49358
9999
// Clang-cl doesn't support either [[no_unique_address]] nor
100100
// [[msvc::no_unique_address]]
101-
#if _MSC_VER && defined(__clang__) && \
102-
__clang_major__ > 0 // TODO: Update when the bug is fixed.
101+
#if _MSC_VER && defined(__clang__) && __clang_major__ <= 17
103102
#define sus_clang_bug_49358(...) __VA_ARGS__
104103
#define sus_clang_bug_49358_else(...)
105104
#else

0 commit comments

Comments
 (0)