llvm.org GIT mirror llvm / f94880b
Fix a possible crash call setIsInBounds. - 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 Daniel Dunbar 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1215912159 PointerType::get(EI.getType(), AS),
1216012160 I->getOperand(0)->getName());
1216112161 Value *GEP =
12162 Builder->CreateGEP(Ptr, EI.getOperand(1), I->getName()+".gep");
12163 cast(GEP)->setIsInBounds(true);
12162 Builder->CreateInBoundsGEP(Ptr, EI.getOperand(1),
12163 I->getName()+".gep");
1216512165 LoadInst *Load = Builder->CreateLoad(GEP, "tmp");