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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits