diff options
| -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  | 

