[C++11] Remove the completely unnecessary requirement on SetVector's
[oota-llvm.git] / lib / Transforms / Scalar / SROA.cpp
index 3c245e4bd5e49717cbbbfbfdbe62ea5b018aa811..1dc83dad22796dab5a5a6e4a3df4e9ee5a4bbbdb 100644 (file)
@@ -3640,7 +3640,7 @@ bool SROA::runOnFunction(Function &F) {
       // Remove the deleted allocas from various lists so that we don't try to
       // continue processing them.
       if (!DeletedAllocas.empty()) {
-        std::function<bool(AllocaInst *)> IsInSet = [&](AllocaInst *AI) {
+        auto IsInSet = [&](AllocaInst *AI) {
           return DeletedAllocas.count(AI);
         };
         Worklist.remove_if(IsInSet);