majnemer added inline comments. ================ Comment at: lib/IR/ConstantFold.cpp:2213 } + if (!isa<ConstantInt>(Idxs[i - 1])) + continue; ---------------- Shouldn't this be `!isa<Constant>` ? Repository: rL LLVM https://reviews.llvm.org/D38677