From: Jonas Devlieghere Date: Tue, 28 Jan 2020 23:28:13 +0000 (-0800) Subject: Fix another implicit conversion in the directory watcher X-Git-Tag: 2020.06-alpha~221^2~335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43a1c80508d17fa42c78b690d426105eaa84c539;p=platform%2Fupstream%2Fllvm.git Fix another implicit conversion in the directory watcher --- diff --git a/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp b/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp index 88bab18169a8..2cae847e7657 100644 --- a/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp +++ b/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp @@ -221,7 +221,7 @@ llvm::Expected> clang::DirectoryWatcher::creat // We need to copy the data so the lifetime is ok after a const copy is made // for the block. - const std::string CopiedPath = Path; + const std::string CopiedPath = Path.str(); auto InitWork = ^{ // We need to start watching the directory before we start scanning in order