Skip to content

Commit bb0b90e

Browse files
authored
Fix a memory leak in pullback reabstraction thunks. (#24165)
1 parent 3f18bee commit bb0b90e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/SILOptimizer/Mandatory/Differentiation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,6 @@ static SILFunction *getOrCreateReabstractionThunk(SILOptFunctionBuilder &fb,
22932293
auto indRes = *fromIndResultsIter++;
22942294
auto *load = builder.createLoad(loc, indRes,
22952295
getBufferLOQ(indRes->getType().getASTType(), *thunk));
2296-
builder.createRetainValue(loc, load, builder.getDefaultAtomicity());
22972296
results.push_back(load);
22982297
continue;
22992298
}

0 commit comments

Comments
 (0)