Appease STLs where std::atomic<void*> lacks a constexpr default ctor
authorReid Kleckner <rnk@google.com>
Thu, 4 Apr 2019 18:45:05 +0000 (18:45 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 4 Apr 2019 18:45:05 +0000 (18:45 +0000)
commit4312fee0a9fb5b2bfe4a52766a4abdd35f23c018
treedca1a48ea7711c3fb08d54869706177f11832320
parent09137be7f8f604b28fc122e14631b133f3ec4ef0
Appease STLs where std::atomic<void*> lacks a constexpr default ctor

MSVC 2019 casts the pointer to a pointer-sized integer, which is a
reinterpret_cast, which is invalid in a constexpr context, so I have to
remove the LLVM_REQUIRES_CONSTANT_INITIALIZATION annotation for now.

llvm-svn: 357716
llvm/include/llvm/Support/ManagedStatic.h
llvm/lib/Support/CommandLine.cpp