vsk added a comment. Ah, I forgot about array_lengthof. If we were to add this overload, we ought to convert in-tree uses of array_lengthof to use it. If anyone's willing to tackle that, I'd say go for it. Repository: rL LLVM https://reviews.llvm.org/D49402