We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37c30b1 + aa4e9cb commit f2f4cb8Copy full SHA for f2f4cb8
include/swift/Basic/ImmutablePointerSet.h
@@ -349,7 +349,10 @@ ImmutablePointerSet<T> ImmutablePointerSetFactory<T>::EmptyPtrSet =
349
ImmutablePointerSet<T>(nullptr, {});
350
351
template <typename T>
352
-constexpr unsigned ImmutablePointerSetFactory<T>::AllocAlignment =
+#if !defined(_MSC_VER) || defined(__clang__)
353
+constexpr
354
+#endif
355
+const unsigned ImmutablePointerSetFactory<T>::AllocAlignment =
356
(alignof(PtrSet) > alignof(PtrTy)) ? alignof(PtrSet) : alignof(PtrTy);
357
358
} // end swift namespace
0 commit comments