Loading libcxx/test/support/count_new.h +7 −0 Original line number Diff line number Diff line Loading @@ -347,10 +347,17 @@ public: const bool MemCounter::disable_checking = false; #endif #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable: 4640) // '%s' construction of local static object is not thread safe (/Zc:threadSafeInit-) #endif // _MSC_VER inline MemCounter* getGlobalMemCounter() { static MemCounter counter((MemCounter::MemCounterCtorArg_())); return &counter; } #ifdef _MSC_VER #pragma warning(pop) #endif MemCounter &globalMemCounter = *getGlobalMemCounter(); Loading libcxx/test/support/type_id.h +7 −0 Original line number Diff line number Diff line Loading @@ -49,11 +49,18 @@ private: }; // makeTypeID - Return the TypeID for the specified type 'T'. #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable: 4640) // '%s' construction of local static object is not thread safe (/Zc:threadSafeInit-) #endif // _MSC_VER template <class T> inline TypeID const& makeTypeIDImp() { static const TypeID id(typeid(T).name()); return id; } #ifdef _MSC_VER #pragma warning(pop) #endif template <class T> struct TypeWrapper {}; Loading Loading
libcxx/test/support/count_new.h +7 −0 Original line number Diff line number Diff line Loading @@ -347,10 +347,17 @@ public: const bool MemCounter::disable_checking = false; #endif #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable: 4640) // '%s' construction of local static object is not thread safe (/Zc:threadSafeInit-) #endif // _MSC_VER inline MemCounter* getGlobalMemCounter() { static MemCounter counter((MemCounter::MemCounterCtorArg_())); return &counter; } #ifdef _MSC_VER #pragma warning(pop) #endif MemCounter &globalMemCounter = *getGlobalMemCounter(); Loading
libcxx/test/support/type_id.h +7 −0 Original line number Diff line number Diff line Loading @@ -49,11 +49,18 @@ private: }; // makeTypeID - Return the TypeID for the specified type 'T'. #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable: 4640) // '%s' construction of local static object is not thread safe (/Zc:threadSafeInit-) #endif // _MSC_VER template <class T> inline TypeID const& makeTypeIDImp() { static const TypeID id(typeid(T).name()); return id; } #ifdef _MSC_VER #pragma warning(pop) #endif template <class T> struct TypeWrapper {}; Loading