Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).