Extract index could be a differnet integral type. Differential Revision: https://reviews.llvm.org/D75327