[Attributor][FIX] Destroy bump allocator objects to avoid leaks
authorJohannes Doerfert <johannes@jdoerfert.de>
Sat, 10 Jul 2021 23:53:37 +0000 (18:53 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 10 Jul 2021 23:53:37 +0000 (18:53 -0500)
commit2e7e2994a94efad7fde5547d4e493e28b3b660a3
tree7a73bb842ee6a81526ea5a3cb80347a72498ad0f
parent514c033db1e0c237eccd56b9fc11fe05a6baff39
[Attributor][FIX] Destroy bump allocator objects to avoid leaks

AllocationInfo and DeallocationInfo objects themselves are allocated
with the Attributor bump allocator and do not need to be deallocated.
That said, the sets in AllocationInfo and DeallocationInfo need to be
destroyed to avoid memory leaks.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp