fix LocalContextPass to support do-while [ci skip]