forked from OSchip/llvm-project
Add another workaround for C++17 inline variable ABI breakage.
llvm-svn: 274408
This commit is contained in:
parent
d3ac6ae7d3
commit
fa10f41f3e
|
@ -13,7 +13,10 @@
|
|||
_LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL_FILESYSTEM
|
||||
|
||||
_LIBCPP_CONSTEXPR path::value_type path::preferred_separator;
|
||||
|
||||
// Make preferred_separator non-discardable in C++17
|
||||
// See PR28395 (https://llvm.org/bugs/show_bug.cgi?id=28395)
|
||||
static const path::value_type&
|
||||
__preferred_sep_force_use __attribute__((used)) = path::preferred_separator;
|
||||
|
||||
namespace { namespace parser
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue