[llvm] [DebugInfo] Call std::set directly (NFC) (PR #136261)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 22:53:19 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/136261.diff
1 Files Affected:
- (modified) llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h (+1-5)
``````````diff
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<TYPE>::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 { \
``````````
</details>
https://github.com/llvm/llvm-project/pull/136261
More information about the llvm-commits
mailing list