MSVCToolChain.cpp: Use explicit constructor for SmallString from std::string, to appease mingw-g++.

llvm-svn: 269556
This commit is contained in:
NAKAMURA Takumi 2016-05-14 08:09:12 +00:00
parent bfd1e9a044
commit 4b8e3e59cd
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ VersionTuple MSVCToolChain::getMSVCVersionFromExe() const {
std::string BinPath;
if (!getVisualStudioBinariesFolder("", BinPath))
return Version;
SmallString<128> ClExe = BinPath;
SmallString<128> ClExe(BinPath);
llvm::sys::path::append(ClExe, "cl.exe");
std::wstring ClExeWide;