[Attributor][FIX] Ensure to delete all AAs
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 18 Dec 2022 00:22:22 +0000 (16:22 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sun, 18 Dec 2022 01:45:25 +0000 (17:45 -0800)
commit81f3deec1931380189e7a5d4fc45cd9b9023f260
tree71b8d9cf33fbf54fee5ae7cfde033b14f4fe2d71
parent7bce66edc65b74513a83011577b0d7362f859671
[Attributor][FIX] Ensure to delete all AAs

Before we might have missed calling the destructor on an abstract
attribute if it was created outside the seeding or update phase.
All AAs are now in the AAMap and we can use it to delete them all.
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/allow_list.ll