Use IRBuilder instead of ConstantInt methods. It simplifies code a little bit.