https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Or just teach ubsan pass to add cgraph edges for the calls it adds (I believe it doesn't remove any calls, just adds them). Guess that should be cheaper than scheduling another rebuild_cgraph_edges pass.