Author: ericwf
Date: Fri Oct 28 15:19:36 2016
New Revision: 285445

URL: http://llvm.org/viewvc/llvm-project?rev=285445&view=rev
Log:
Fix Clang 3.6 build error

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=285445&r1=285444&r2=285445&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/filesystem/path.cpp (original)
+++ libcxx/trunk/src/experimental/filesystem/path.cpp Fri Oct 28 15:19:36 2016
@@ -283,7 +283,7 @@ string_view_t path::__root_path_raw() co
     if (!parser::good(e))
       e = parser::root_name_end(__pn_);
     if (parser::good(e))
-      return string_view_t{__pn_}.substr(0, e + 1);
+      return string_view_t(__pn_).substr(0, e + 1);
     return {};
 }
 


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

Reply via email to