Skip to content

Commit 81d75e3

Browse files
committed
[gardening] Remove never-read variable bestPrev. Courtesy of clang-tidy.
1 parent 89d6d75 commit 81d75e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/IRGen/LocalTypeData.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ llvm::Value *LocalTypeDataCache::tryGet(IRGenFunction &IGF, Key key,
9797
if (it == Map.end()) return nullptr;
9898
auto &chain = it->second;
9999

100-
CacheEntry *best = nullptr, *bestPrev = nullptr;
100+
CacheEntry *best = nullptr;
101101
Optional<unsigned> bestCost;
102102

103103
CacheEntry *next = chain.Root, *nextPrev = nullptr;
@@ -130,7 +130,6 @@ llvm::Value *LocalTypeDataCache::tryGet(IRGenFunction &IGF, Key key,
130130
bestCost = curCost;
131131
}
132132
best = cur;
133-
bestPrev = curPrev;
134133
}
135134

136135
// If we didn't find anything, we're done.

0 commit comments

Comments
 (0)