memory_resource still needs init_priority when built with GCC 4.9

llvm-svn: 280585
This commit is contained in:
Eric Fiselier 2016-09-03 07:05:40 +00:00
parent 2510a31677
commit ebbcfe7bfc
1 changed files with 1 additions and 3 deletions

View File

@ -72,10 +72,8 @@ union ResourceInitHelper {
// Only in C++11 is "init_priority" needed to ensure initialization order.
#if _LIBCPP_STD_VER > 11
_LIBCPP_SAFE_STATIC
#else
__attribute__((init_priority (101)))
#endif
ResourceInitHelper res_init;
ResourceInitHelper res_init __attribute__((init_priority (101)));
} // end namespace