mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ValueHandle] Allow invalidation of BB arguments.
This commit changes the invalidation handler from SILInstruction to ValueBase, and also invalidates SILArguments.
This commit is contained in:
@@ -676,8 +676,8 @@ removeDeleteNotificationHandler(DeleteNotificationHandler* Handler) {
|
||||
NotificationHandlers.remove(Handler);
|
||||
}
|
||||
|
||||
void SILModule::notifyDeleteHandlers(ValueBase *Item) {
|
||||
void SILModule::notifyDeleteHandlers(ValueBase *V) {
|
||||
for (auto *Handler : NotificationHandlers) {
|
||||
Handler->handleDeleteNotification(Item);
|
||||
Handler->handleDeleteNotification(V);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user