]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219941 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/driver.cpp

index b7f7fbf851c31596105dad688db4c7f7f5710443..f411cf9832449fbb53de39984b5a9d86d63113ff 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);
     });