Thanks.<br><br>Calling getAnalysis with a Function* argument and removing const from iterator solved the problem.<br><br>