Fix problem I introduced in bugpoint with the cleanup functions