[PATCH] D80433: [clang-tblgen][CommandLine][ManagedStatic] Fix build errors with clang-tblgen in Debug mode using MSVC 2019 v16.6
Denys Petrov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 25 04:14:32 PDT 2020
ASDenysPetrov updated this revision to Diff 265994.
ASDenysPetrov added a comment.
@RKSimon, @rnk ,
Updated according to your comments. Please, review and approve if you are OK with it. I don't want this bug block me and other people for a long.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80433/new/
https://reviews.llvm.org/D80433
Files:
llvm/include/llvm/Support/ManagedStatic.h
Index: llvm/include/llvm/Support/ManagedStatic.h
===================================================================
--- llvm/include/llvm/Support/ManagedStatic.h
+++ llvm/include/llvm/Support/ManagedStatic.h
@@ -40,8 +40,8 @@
// constexpr, a dynamic initializer may be emitted depending on optimization
// settings. For the affected versions of MSVC, use the old linker
// initialization pattern of not providing a constructor and leaving the fields
-// uninitialized.
-#if !defined(_MSC_VER) || defined(__clang__)
+// uninitialized. See http://llvm.org/PR41367 for details.
+#if !defined(_MSC_VER) || (_MSC_VER >= 1925) || defined(__clang__)
#define LLVM_USE_CONSTEXPR_CTOR
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80433.265994.patch
Type: text/x-patch
Size: 690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200525/ad34e5d1/attachment-0001.bin>
More information about the llvm-commits
mailing list