Switching from std::vector to llvm::ArrayRef per post-commit review suggestion.