Speculatively fix GCC 4.7 build after r219938
authorHans Wennborg <hans@hanshq.net>
Thu, 16 Oct 2014 17:57:41 +0000 (17:57 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 16 Oct 2014 17:57:41 +0000 (17:57 +0000)
llvm-svn: 219941

clang/tools/driver/driver.cpp

index b7f7fbf..f411cf9 100644 (file)
@@ -244,7 +244,7 @@ static void ParseProgName(SmallVectorImpl<const char *> &ArgVector,
 
   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);
     });