The IR bits look fine (and a generally useful refactoring now address space casts are more widespread). I must admit I've never used lint or figured out what it's doing, so while it superficially looks OK I don't really have competence in that area. http://llvm-reviews.chandlerc.com/D2134