AsmParser: Simplify code with ArrayRef.

No functionality change.