diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-14 01:53:06 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-14 03:20:51 -0400 |
| commit | b74c500aa9e5e7949ca46f42e0dc62e02136e259 (patch) | |
| tree | ae35d1385b653b3b76d1fed032a55412c718a23a /view/sharedcache/core/ObjC.cpp | |
| parent | 043a863cef0cecd85d81704a2cfa89bc8964d5c0 (diff) | |
[SharedCache] Misc cleanup
- Make `SharedCache::m_entries` a simple std::vector we never lookup based off the entry ID
- Remove some old comments
- Rename some old variables so that they are accurate
- Fix compiler warnings
- Remove some unneeded copying
Diffstat (limited to 'view/sharedcache/core/ObjC.cpp')
| -rw-r--r-- | view/sharedcache/core/ObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/sharedcache/core/ObjC.cpp b/view/sharedcache/core/ObjC.cpp index dc5c3856..2e37fd27 100644 --- a/view/sharedcache/core/ObjC.cpp +++ b/view/sharedcache/core/ObjC.cpp @@ -111,7 +111,7 @@ std::optional<ObjCOptimizationHeader> GetObjCOptimizationHeader(SharedCache& cac // Find the first primary entry and use that header to read the obj opt header. // Don't ask me why this is done like this... std::optional<dyld_cache_header> primaryCacheHeader = std::nullopt; - for (const auto& [_, entry] : cache.GetEntries()) + for (const auto& entry : cache.GetEntries()) { if (entry.GetType() == CacheEntryType::Primary) { |
