Fix a pretty serious misfeature of the inliner: if it inlines a function