Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit f71f365

Browse files
committed
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273613 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 805aa9b commit f71f365

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Analysis/CFLAliasAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ CFLAAResult::FunctionInfo::FunctionInfo(Function &Fn,
764764
// in InterfaceMap: if it is not, we add the correspondence to the map;
765765
// otherwise, an aliasing relation is found and we add it to
766766
// RetParamRelations.
767-
auto AddToRetParamRelations = [this, &InterfaceMap](
768-
unsigned InterfaceIndex, StratifiedIndex SetIndex) {
767+
auto AddToRetParamRelations = [&](unsigned InterfaceIndex,
768+
StratifiedIndex SetIndex) {
769769
unsigned Level = 0;
770770
while (true) {
771771
InterfaceValue CurrValue{InterfaceIndex, Level};

lib/Analysis/StratifiedSets.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ template <typename T> class StratifiedSetsBuilder {
419419
assert(has(Main));
420420
assert(has(ToAdd));
421421

422-
auto GetIndexBelow = [this](StratifiedIndex Index, unsigned NumLevel) {
422+
auto GetIndexBelow = [&](StratifiedIndex Index, unsigned NumLevel) {
423423
for (unsigned I = 0; I < NumLevel; ++I) {
424424
auto Link = linksAt(Index);
425425
Index = Link.hasBelow() ? Link.getBelow() : addLinkBelow(Index);
@@ -641,4 +641,4 @@ template <typename T> class StratifiedSetsBuilder {
641641
bool inbounds(StratifiedIndex N) const { return N < Links.size(); }
642642
};
643643
}
644-
#endif // LLVM_ADT_STRATIFIEDSETS_H
644+
#endif // LLVM_ADT_STRATIFIEDSETS_H

0 commit comments

Comments
 (0)