1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

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
This commit is contained in:
George Burgess IV 2016-06-23 20:59:13 +00:00
parent 1fa9264ebf
commit a8e24cd205
2 changed files with 4 additions and 4 deletions

View File

@ -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};

View File

@ -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
#endif // LLVM_ADT_STRATIFIEDSETS_H