Fix -Wunused-lambda-capture by removing some unused lambda captures

llvm-svn: 295373
This commit is contained in:
David Blaikie 2017-02-16 20:55:48 +00:00
parent 3f6260cab4
commit fc4857f80b
1 changed files with 2 additions and 2 deletions

View File

@ -1704,10 +1704,10 @@ void DataFlowGraph::linkBlockRefs(DefStackMap &DefM, NodeAddr<BlockNode*> BA) {
// Push block delimiters. // Push block delimiters.
markBlock(BA.Id, DefM); markBlock(BA.Id, DefM);
auto IsClobber = [this] (NodeAddr<RefNode*> RA) -> bool { auto IsClobber = [] (NodeAddr<RefNode*> RA) -> bool {
return IsDef(RA) && (RA.Addr->getFlags() & NodeAttrs::Clobbering); return IsDef(RA) && (RA.Addr->getFlags() & NodeAttrs::Clobbering);
}; };
auto IsNoClobber = [this] (NodeAddr<RefNode*> RA) -> bool { auto IsNoClobber = [] (NodeAddr<RefNode*> RA) -> bool {
return IsDef(RA) && !(RA.Addr->getFlags() & NodeAttrs::Clobbering); return IsDef(RA) && !(RA.Addr->getFlags() & NodeAttrs::Clobbering);
}; };