[Driver] Fix implicit conversion guarded by #ifdef _WIN32

This commit is contained in:
Benjamin Kramer 2020-01-29 00:18:16 +01:00
parent c9909c22fe
commit a153d78c7e
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ static bool findVCToolChainViaSetupConfig(std::string &Path,
if (!llvm::sys::fs::is_directory(ToolchainPath)) if (!llvm::sys::fs::is_directory(ToolchainPath))
return false; return false;
Path = ToolchainPath.str(); Path = std::string(ToolchainPath.str());
VSLayout = MSVCToolChain::ToolsetLayout::VS2017OrNewer; VSLayout = MSVCToolChain::ToolsetLayout::VS2017OrNewer;
return true; return true;
#endif #endif