[llvm] [NFC][TableGen] Code cleanup in Record.h/cpp (PR #138876)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 13:03:16 PDT 2025
================
@@ -1798,9 +1793,9 @@ class Record {
}
void removeValue(const Init *Name) {
- for (unsigned i = 0, e = Values.size(); i != e; ++i)
- if (Values[i].getNameInit() == Name) {
- Values.erase(Values.begin()+i);
+ for (auto [Idx, Value] : enumerate(Values))
----------------
jurahul wrote:
Done. thanks
https://github.com/llvm/llvm-project/pull/138876
More information about the llvm-commits
mailing list