[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 07:29:16 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG46e5c5fe778b: [ManagedStatic] Fix build errors with clang-tblgen in Debug mode using MSVC… (authored by ASDenysPetrov).
Repository:
rG LLVM Github Monorepo
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.266019.patch
Type: text/x-patch
Size: 690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200525/eab52e82/attachment-0001.bin>
More information about the llvm-commits
mailing list