forked from OSchip/llvm-project
Revert "[InstructionCombining] Fixed null check after dereferencing warning. NFCI."
This reverts commit 8308187fd9
. This exposed a bug.
This commit is contained in:
parent
decd8c4844
commit
5b37c018d5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue