forked from OSchip/llvm-project
[Driver] Fix implicit conversion guarded by #ifdef _WIN32
This commit is contained in:
parent
c9909c22fe
commit
a153d78c7e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue