Use ValueBase instead of SILInstructions for delete notifications.

This enables e.g. notifications about the removal of SILArguments.
This commit is contained in:
Roman Levenstein
2015-12-04 15:16:05 -08:00
parent ea848834f9
commit 3bc1bd93c8
5 changed files with 8 additions and 7 deletions

View File

@@ -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);
}