From 513463fd266f059864ce3c0236494cced5de0f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 5 Nov 2020 23:09:15 +0200 Subject: [PATCH] [libcxx] Have lexically_normal return the path with preferred separators Differential Revision: https://reviews.llvm.org/D91179 --- libcxx/src/filesystem/operations.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/src/filesystem/operations.cpp b/libcxx/src/filesystem/operations.cpp index 458ba1648a18..6f69ca926c52 100644 --- a/libcxx/src/filesystem/operations.cpp +++ b/libcxx/src/filesystem/operations.cpp @@ -1717,6 +1717,7 @@ path path::lexically_normal() const { if (NeedTrailingSep) Result /= PS(""); + Result.make_preferred(); return Result; }