CodeGen cleanup.