don't emit final unnecessary ret