File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,9 @@ void DefaultFunctionPruningStrategy::Erase(size_t CurrentOutputSize) {
83
83
NumToRemove = 1 ;
84
84
85
85
assert (NumToRemove <= SortedFunctions.size ());
86
- llvm::for_each (
87
- llvm::make_range (SortedFunctions.begin () + SortedFunctions.size () -
88
- NumToRemove,
89
- SortedFunctions.end ()),
90
- [&](const NameFunctionSamples &E) { ProfileMap.erase (E.first ); });
86
+ for (const NameFunctionSamples &E :
87
+ llvm::drop_begin (SortedFunctions, SortedFunctions.size () - NumToRemove))
88
+ ProfileMap.erase (E.first );
91
89
SortedFunctions.resize (SortedFunctions.size () - NumToRemove);
92
90
}
93
91
Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ class GuardWideningImpl {
209
209
210
210
void makeAvailableAt (const SmallVectorImpl<Value *> &Checks,
211
211
Instruction *InsertPos) const {
212
- for_each (Checks, [&](Value *V) { makeAvailableAt (V, InsertPos); });
212
+ for (Value *V : Checks)
213
+ makeAvailableAt (V, InsertPos);
213
214
}
214
215
215
216
// / Common helper used by \c widenGuard and \c isWideningCondProfitable. Try
You can’t perform that action at this time.
0 commit comments