[Attributor][FIX] Remove reference into map that might dangle
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 17 Mar 2022 22:37:15 +0000 (17:37 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 17 Mar 2022 22:42:32 +0000 (17:42 -0500)
commit88ea86c369f3faecfd20db27d5e7b3424051f976
treef234d9b6e10fbea6ee0f6bcc598d26dbff6016f3
parentf6b5142ac2e4c49b9eff4c22d699f464a6812feb
[Attributor][FIX] Remove reference into map that might dangle

The reference was taken and the map was modified after. This can (and
did) lead to dangling pointers and all sorts of problems afterwards.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp