From 98329ed683ef631f669469be6ef71cd1a3e3999a 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219941 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/driver/driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index b7f7fbf851..f411cf9832 100644 --- a/tools/driver/driver.cpp +++ b/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); }); -- 2.40.0