This commit is contained in:
Meghana Gupta
2023-01-06 23:50:25 -08:00
parent b48072957c
commit 0c29ebb57d

View File

@@ -292,7 +292,7 @@ void DCE::markLive() {
});
};
// If we have a begin_borrow of a @guaranteed operand, disable DCE'ing
// of parent borrow scopes. Dead reborrows needs complex handling, whuch
// of parent borrow scopes. Dead reborrows needs complex handling, which
// is why it is disabled for now.
if (borrowInst->getOperand()->getOwnershipKind() ==
OwnershipKind::Guaranteed) {