r269556 - MSVCToolChain.cpp: Use explicit constructor for SmallString from std::string, to appease mingw-g++.
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Sat May 14 01:09:12 PDT 2016
Author: chapuni
Date: Sat May 14 03:09:12 2016
New Revision: 269556
URL: http://llvm.org/viewvc/llvm-project?rev=269556&view=rev
Log:
MSVCToolChain.cpp: Use explicit constructor for SmallString from std::string, to appease mingw-g++.
Modified:
cfe/trunk/lib/Driver/MSVCToolChain.cpp
Modified: cfe/trunk/lib/Driver/MSVCToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/MSVCToolChain.cpp?rev=269556&r1=269555&r2=269556&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/MSVCToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/MSVCToolChain.cpp Sat May 14 03:09:12 2016
@@ -466,7 +466,7 @@ VersionTuple MSVCToolChain::getMSVCVersi
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;
More information about the cfe-commits
mailing list