[clang] [Serialization] Use llvm::map_range (NFC) (PR #135990)

Jakub Kuderski via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 16 10:17:55 PDT 2025


================
@@ -103,11 +103,9 @@ template<typename Info> class MultiOnDiskHashTable {
 
   /// The current set of on-disk tables.
   table_range tables() {
-    auto Begin = Tables.begin(), End = Tables.end();
-    if (getMergedTable())
-      ++Begin;
-    return llvm::make_range(llvm::map_iterator(Begin, AsOnDiskTable()),
-                            llvm::map_iterator(End, AsOnDiskTable()));
+    bool DropBegin = getMergedTable();
----------------
kuhar wrote:

Should we make this an integer that denotes how many elements to drop?

https://github.com/llvm/llvm-project/pull/135990


More information about the cfe-commits mailing list