APSInt: Simplify code to reduce the number of copies. No functionality change.