r219941 - Speculatively fix GCC 4.7 build after r219938
Hans Wennborg
hans at hanshq.net
Thu Oct 16 10:57:41 PDT 2014
Author: hans
Date: Thu Oct 16 12:57:41 2014
New Revision: 219941
URL: http://llvm.org/viewvc/llvm-project?rev=219941&view=rev
Log:
Speculatively fix GCC 4.7 build after r219938
Modified:
cfe/trunk/tools/driver/driver.cpp
Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=219941&r1=219940&r2=219941&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Thu Oct 16 12:57:41 2014
@@ -244,7 +244,7 @@ static void ParseProgName(SmallVectorImp
for (int Components = 2; Components; --Components) {
auto I = std::find_if(std::begin(suffixes), std::end(suffixes),
- [&](const decltype(suffixes[0]) &suffix) {
+ [&](decltype(suffixes[0]) &suffix) {
return ProgNameRef.endswith(suffix.Suffix);
});
More information about the cfe-commits
mailing list