- I think there are more instances of this, but I think they are fixed in Dan's
incoming patch. This one was preventing me from doing a bugpoint reduction
though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81103
91177308-0d34-0410-b5e6-
96231b3b80d8
PointerType::get(EI.getType(), AS),
I->getOperand(0)->getName());
Value *GEP =
PointerType::get(EI.getType(), AS),
I->getOperand(0)->getName());
Value *GEP =
- Builder->CreateGEP(Ptr, EI.getOperand(1), I->getName()+".gep");
- cast<GEPOperator>(GEP)->setIsInBounds(true);
+ Builder->CreateInBoundsGEP(Ptr, EI.getOperand(1),
+ I->getName()+".gep");
LoadInst *Load = Builder->CreateLoad(GEP, "tmp");
LoadInst *Load = Builder->CreateLoad(GEP, "tmp");