mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use ValueBase instead of SILInstructions for delete notifications.
This enables e.g. notifications about the removal of SILArguments.
This commit is contained in:
@@ -676,7 +676,7 @@ removeDeleteNotificationHandler(DeleteNotificationHandler* Handler) {
|
||||
NotificationHandlers.remove(Handler);
|
||||
}
|
||||
|
||||
void SILModule::notifyDeleteHandlers(SILInstruction *Item) {
|
||||
void SILModule::notifyDeleteHandlers(ValueBase *Item) {
|
||||
for (auto *Handler : NotificationHandlers) {
|
||||
Handler->handleDeleteNotification(Item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user