File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
llvm/lib/DebugInfo/LogicalView/Core Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -299,20 +299,12 @@ void LVScope::addMissingElements(LVScope *Reference) {
299
299
LVSymbols References;
300
300
References.append (ReferenceSymbols->begin (), ReferenceSymbols->end ());
301
301
302
- auto RemoveSymbol = [&](LVSymbols &Symbols, LVSymbol *Symbol) {
303
- LVSymbols::iterator Iter = std::remove_if (
304
- Symbols.begin (), Symbols.end (),
305
- [Symbol](LVSymbol *Item) -> bool { return Item == Symbol; });
306
- if (Iter != Symbols.end ())
307
- Symbols.erase (Iter, Symbols.end ());
308
- };
309
-
310
302
// Erase abstract symbols already in this scope from the collection of
311
303
// symbols in the referenced scope.
312
304
if (getSymbols ())
313
305
for (const LVSymbol *Symbol : *getSymbols ())
314
306
if (Symbol->getHasReferenceAbstract ())
315
- RemoveSymbol (References, Symbol->getReference ());
307
+ llvm::erase_value (References, Symbol->getReference ());
316
308
317
309
// If we have elements left in 'References', those are the elements that
318
310
// need to be inserted in the current scope.
You can’t perform that action at this time.
0 commit comments