It appears this code was completely untested, so using ArrayRef wrong didn't break anything obvious. llvm-svn: 217476