Skip to content

Commit 00edc61

Browse files
committed
[upstream-update] API rename llvm::DenseMap::reserve => llvm::DenseMap::resize.
(cherry picked from commit b11f7a0) (cherry picked from commit 39eab3a)
1 parent 0fac43e commit 00edc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/SILCombiner/SILCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ bool SILCombiner::doOneIteration(SILFunction &F, unsigned Iteration) {
225225
void SILCombineWorklist::addInitialGroup(ArrayRef<SILInstruction *> List) {
226226
assert(Worklist.empty() && "Worklist must be empty to add initial group");
227227
Worklist.reserve(List.size()+16);
228-
WorklistMap.resize(List.size());
228+
WorklistMap.reserve(List.size());
229229
DEBUG(llvm::dbgs() << "SC: ADDING: " << List.size()
230230
<< " instrs to worklist\n");
231231
while (!List.empty()) {

0 commit comments

Comments
 (0)