Thanks. Calling getAnalysis with a Function* argument and removing const from iterator solved the problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080305/faff1821/attachment.html>