diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h index a8bf33f9ad6b2..b60f9e90b4f1c 100644 --- a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h +++ b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h @@ -50,11 +50,7 @@ namespace logicalview { return FAMILY.SET.find(TYPE::FIELD) != FAMILY.SET.end(); \ } \ void set##FAMILY##FIELD() { FAMILY.SET.insert(TYPE::FIELD); } \ - void reset##FAMILY##FIELD() { \ - std::set::iterator Iter = FAMILY.SET.find(TYPE::FIELD); \ - if (Iter != FAMILY.SET.end()) \ - FAMILY.SET.erase(Iter); \ - } + void reset##FAMILY##FIELD() { FAMILY.SET.erase(TYPE::FIELD); } #define STDSET_FUNCTION_5(FAMILY, FIELD, ENTRY, TYPE, SET) \ bool get##FAMILY##FIELD##ENTRY() const { \