Author: ericwf
Date: Fri Jul  1 18:41:48 2016
New Revision: 274408

URL: http://llvm.org/viewvc/llvm-project?rev=274408&view=rev
Log:
Add another workaround for C++17 inline variable ABI breakage.

Modified:
    libcxx/trunk/src/experimental/filesystem/path.cpp

Modified: libcxx/trunk/src/experimental/filesystem/path.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/experimental/filesystem/path.cpp?rev=274408&r1=274407&r2=274408&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/filesystem/path.cpp (original)
+++ libcxx/trunk/src/experimental/filesystem/path.cpp Fri Jul  1 18:41:48 2016
@@ -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
 {


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to