Revert "[InstructionCombining] Fixed null check after dereferencing warning. NFCI."

This reverts commit 8308187fd9. This exposed a bug.
This commit is contained in:
Dávid Bolvanský 2019-11-03 20:31:05 +01:00
parent decd8c4844
commit 5b37c018d5
1 changed files with 0 additions and 1 deletions

View File

@ -1724,7 +1724,6 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
// The first two arguments can vary for any GEP, the rest have to be
// static for struct slots
assert(CurTy && "No current type?");
if (J > 1 && CurTy->isStructTy())
return nullptr;