RKSimon accepted this revision. RKSimon added a comment. This revision is now accepted and ready to land. LGTM - thanks for generalising the const helper function. Repository: rL LLVM http://reviews.llvm.org/D13644