From 1e46ef4e08d749b1f47017a8422c6d2c05ef4f37 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Thu, 16 Oct 2014 17:57:41 +0000 Subject: [PATCH] Speculatively fix GCC 4.7 build after r219938 llvm-svn: 219941 --- clang/tools/driver/driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/driver/driver.cpp b/clang/tools/driver/driver.cpp index b7f7fbf851c3..f411cf983244 100644 --- a/clang/tools/driver/driver.cpp +++ b/clang/tools/driver/driver.cpp @@ -244,7 +244,7 @@ static void ParseProgName(SmallVectorImpl &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); });