Skip to content

Commit 32c66c3

Browse files
committed
[QoI] Fix -Wunused-variable warning
1 parent ed15a9e commit 32c66c3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/SILOptimizer/Mandatory/DIMemoryUseCollector.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ SILValue DIMemoryObjectInfo::emitElementAddressForDestroy(
258258
// If we have a class, we can use a borrow directly and avoid ref
259259
// count traffic.
260260
if (isa<ClassDecl>(NTD) && Ptr->getType().isAddress()) {
261-
SILValue Original = Ptr;
262261
SILValue Borrowed = Ptr = B.createLoadBorrow(Loc, Ptr);
263262
EndScopeList.emplace_back(Borrowed, EndScopeKind::Borrow);
264263
}

0 commit comments

Comments
 (0)