diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-04-03 19:41:44 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-04-03 19:41:44 +0000 |
| commit | 93c5444fe0772e3aa2e5a17c9942d7e08b5a0b2f (patch) | |
| tree | 5ece6a0eb309edf35fab3afe86f94b490d8bf85b /llvm/lib/Analysis | |
| parent | aa92ab069c2aca0b7e01fd9c052874aae34de275 (diff) | |
| download | bcm5719-llvm-93c5444fe0772e3aa2e5a17c9942d7e08b5a0b2f.tar.gz bcm5719-llvm-93c5444fe0772e3aa2e5a17c9942d7e08b5a0b2f.zip | |
[opaque pointer type] More GEP API migrations in IRBuilder uses
The plan here is to push the API changes out from the common components
(like Constant::getGetElementPtr and IRBuilder::CreateGEP related
functions) and just update callers to either pass the type if it's
obvious, or pass null.
Do this with LoadInst as well and anything else that comes up, then to
start porting specific uses to not pass null anymore - this may require
some refactoring in each case.
llvm-svn: 234042
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionExpander.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp index 1bdddebf9c9..61ce513a3d3 100644 --- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp @@ -524,7 +524,7 @@ Value *SCEVExpander::expandAddToGEP(const SCEV *const *op_begin, } // Emit a GEP. - Value *GEP = Builder.CreateGEP(V, Idx, "uglygep"); + Value *GEP = Builder.CreateGEP(Builder.getInt8Ty(), V, Idx, "uglygep"); rememberInstruction(GEP); return GEP; |

