[libcxx] r285445 - Fix Clang 3.6 build error
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 28 13:19:36 PDT 2016
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 {};
}
More information about the cfe-commits
mailing list