Skip to content

Commit 1f94525

Browse files
committed
Remove unused Builders from OwnershipRAUWUtility::handleUnowned
1 parent ed80028 commit 1f94525

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/SILOptimizer/Utils/OwnershipOptUtils.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,6 @@ SILBasicBlock::iterator OwnershipRAUWUtility::handleUnowned() {
891891
auto extender = getLifetimeExtender();
892892
SILValue borrow =
893893
extender.createPlusZeroBorrow(newValue, oldValue->getUses());
894-
SILBuilderWithScope builder(oldValue);
895894
return replaceAllUsesAndErase(oldValue, borrow, callbacks);
896895
}
897896
case OwnershipKind::Owned: {
@@ -921,7 +920,6 @@ SILBasicBlock::iterator OwnershipRAUWUtility::handleUnowned() {
921920
}
922921
auto extender = getLifetimeExtender();
923922
SILValue copy = extender.createPlusZeroCopy(newValue, oldValue->getUses());
924-
SILBuilderWithScope builder(oldValue);
925923
auto result = replaceAllUsesAndErase(oldValue, copy, callbacks);
926924
return result;
927925
}

0 commit comments

Comments
 (0)