Loading llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -1724,8 +1724,11 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { // The first two arguments can vary for any GEP, the rest have to be // static for struct slots if (J > 1 && CurTy->isStructTy()) if (J > 1) { assert(CurTy && "No current type?"); if (CurTy->isStructTy()) return nullptr; } DI = J; } else { Loading Loading
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -1724,8 +1724,11 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { // The first two arguments can vary for any GEP, the rest have to be // static for struct slots if (J > 1 && CurTy->isStructTy()) if (J > 1) { assert(CurTy && "No current type?"); if (CurTy->isStructTy()) return nullptr; } DI = J; } else { Loading