Simplify code by using ConstantInt::getRawValue instead of checking to see