forked from OSchip/llvm-project
memory_resource still needs init_priority when built with GCC 4.9
llvm-svn: 280585
This commit is contained in:
parent
2510a31677
commit
ebbcfe7bfc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue