We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed15a9e commit 32c66c3Copy full SHA for 32c66c3
lib/SILOptimizer/Mandatory/DIMemoryUseCollector.cpp
@@ -258,7 +258,6 @@ SILValue DIMemoryObjectInfo::emitElementAddressForDestroy(
258
// If we have a class, we can use a borrow directly and avoid ref
259
// count traffic.
260
if (isa<ClassDecl>(NTD) && Ptr->getType().isAddress()) {
261
- SILValue Original = Ptr;
262
SILValue Borrowed = Ptr = B.createLoadBorrow(Loc, Ptr);
263
EndScopeList.emplace_back(Borrowed, EndScopeKind::Borrow);
264
}
0 commit comments