From 41cad03f423feaa28eced143fb8cdac7f88226c7 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 13 Sep 2018 10:10:18 +0000 Subject: [PATCH] Fix MSVC "illegal conversion; more than one user-defined conversion has been implicitly applied" warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342125 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index e84c7558e7..908ffa3bd1 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -4163,7 +4163,7 @@ std::string Driver::GetFilePath(StringRef Name, const ToolChain &TC) const { SmallString<128> P(Dir[0] == '=' ? SysRoot + Dir.substr(1) : Dir); llvm::sys::path::append(P, Name); if (llvm::sys::fs::exists(Twine(P))) - return {P.str()}; + return P.str().str(); } return None; }; -- 2.40.0