jakehehrlich added a comment. Let's not break compaitableity then and just check the index. The fewer cases this happens in the better IMO. I guess basically what you had at the start was actually the best. Repository: rL LLVM https://reviews.llvm.org/D53782