From f5af53bf01a63b4b7cdffbbc59be47c9a933ae77 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Apr 2025 22:43:32 -0700 Subject: [PATCH] [DebugInfo] Call std::set directly (NFC) --- llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 { \