Skip to content

Commit d3d9b37

Browse files
[DebugInfo] Call std::erase directly (NFC) (llvm#136261)
1 parent 5eabece commit d3d9b37

File tree

1 file changed

+1
-5
lines changed
  • llvm/include/llvm/DebugInfo/LogicalView/Core

1 file changed

+1
-5
lines changed

llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ namespace logicalview {
5050
return FAMILY.SET.find(TYPE::FIELD) != FAMILY.SET.end(); \
5151
} \
5252
void set##FAMILY##FIELD() { FAMILY.SET.insert(TYPE::FIELD); } \
53-
void reset##FAMILY##FIELD() { \
54-
std::set<TYPE>::iterator Iter = FAMILY.SET.find(TYPE::FIELD); \
55-
if (Iter != FAMILY.SET.end()) \
56-
FAMILY.SET.erase(Iter); \
57-
}
53+
void reset##FAMILY##FIELD() { FAMILY.SET.erase(TYPE::FIELD); }
5854

5955
#define STDSET_FUNCTION_5(FAMILY, FIELD, ENTRY, TYPE, SET) \
6056
bool get##FAMILY##FIELD##ENTRY() const { \

0 commit comments

Comments
 (0)