diff options
| author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-06-23 20:59:13 +0000 | 
|---|---|---|
| committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-06-23 20:59:13 +0000 | 
| commit | d14d05affeb6d04c6ed861f6df12ba0c0c8fe827 (patch) | |
| tree | 9cd0dd07c67d618c02159b659b30008eea07428e /llvm/lib | |
| parent | 65787a9e01144766a10e7d1159d440bfe1c21b41 (diff) | |
| download | bcm5719-llvm-d14d05affeb6d04c6ed861f6df12ba0c0c8fe827.tar.gz bcm5719-llvm-d14d05affeb6d04c6ed861f6df12ba0c0c8fe827.zip  | |
Attempt #2 to unbreak bots broken by r273596.
Some of the bots running GCC 4.7 seem to be having trouble with lambdas
that explicitly capture `this`. Relevant-looking bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53137
llvm-svn: 273613
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/CFLAliasAnalysis.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Analysis/StratifiedSets.h | 4 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/CFLAliasAnalysis.cpp b/llvm/lib/Analysis/CFLAliasAnalysis.cpp index ac9bb82fb4a..e04cea2b845 100644 --- a/llvm/lib/Analysis/CFLAliasAnalysis.cpp +++ b/llvm/lib/Analysis/CFLAliasAnalysis.cpp @@ -764,8 +764,8 @@ CFLAAResult::FunctionInfo::FunctionInfo(Function &Fn,    // in InterfaceMap: if it is not, we add the correspondence to the map;    // otherwise, an aliasing relation is found and we add it to    // RetParamRelations. -  auto AddToRetParamRelations = [this, &InterfaceMap]( -      unsigned InterfaceIndex, StratifiedIndex SetIndex) { +  auto AddToRetParamRelations = [&](unsigned InterfaceIndex, +                                    StratifiedIndex SetIndex) {      unsigned Level = 0;      while (true) {        InterfaceValue CurrValue{InterfaceIndex, Level}; diff --git a/llvm/lib/Analysis/StratifiedSets.h b/llvm/lib/Analysis/StratifiedSets.h index 8c253c359c1..d86e18805e9 100644 --- a/llvm/lib/Analysis/StratifiedSets.h +++ b/llvm/lib/Analysis/StratifiedSets.h @@ -419,7 +419,7 @@ public:      assert(has(Main));      assert(has(ToAdd)); -    auto GetIndexBelow = [this](StratifiedIndex Index, unsigned NumLevel) { +    auto GetIndexBelow = [&](StratifiedIndex Index, unsigned NumLevel) {        for (unsigned I = 0; I < NumLevel; ++I) {          auto Link = linksAt(Index);          Index = Link.hasBelow() ? Link.getBelow() : addLinkBelow(Index); @@ -641,4 +641,4 @@ private:    bool inbounds(StratifiedIndex N) const { return N < Links.size(); }  };  } -#endif // LLVM_ADT_STRATIFIEDSETS_H
\ No newline at end of file +#endif // LLVM_ADT_STRATIFIEDSETS_H  | 

