diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-06 02:31:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-06 02:31:36 +0000 |
commit | cb834e9b6313111b17d9d8ee62ffe3cdf75568f8 (patch) | |
tree | ccb71d9bbe7a000354c01f93838f039747bd378c /lib/Transforms | |
parent | 610b1c2a518c8aba64f3e0967b7fd5442efce0b7 (diff) | |
download | external_llvm-cb834e9b6313111b17d9d8ee62ffe3cdf75568f8.zip external_llvm-cb834e9b6313111b17d9d8ee62ffe3cdf75568f8.tar.gz external_llvm-cb834e9b6313111b17d9d8ee62ffe3cdf75568f8.tar.bz2 |
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index ce2f452..bfe3a1c 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -12160,8 +12160,8 @@ Instruction *InstCombiner::visitExtractElementInst(ExtractElementInst &EI) { 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"); |