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/Transforms/Instrumentation/GCOVProfiling.cpp | |
parent | aa92ab069c2aca0b7e01fd9c052874aae34de275 (diff) | |
download | llvm-93c5444fe0772e3aa2e5a17c9942d7e08b5a0b2f.zip llvm-93c5444fe0772e3aa2e5a17c9942d7e08b5a0b2f.tar.gz llvm-93c5444fe0772e3aa2e5a17c9942d7e08b5a0b2f.tar.bz2 |
[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/Transforms/Instrumentation/GCOVProfiling.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 7d63d1a..5cb0e847 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -925,7 +925,7 @@ void GCOVProfiler::insertIndirectCounterIncrement() { Value *ZExtPred = Builder.CreateZExt(Pred, Builder.getInt64Ty()); Arg = std::next(Fn->arg_begin()); Arg->setName("counters"); - Value *GEP = Builder.CreateGEP(Arg, ZExtPred); + Value *GEP = Builder.CreateGEP(Type::getInt64PtrTy(*Ctx), Arg, ZExtPred); Value *Counter = Builder.CreateLoad(GEP, "counter"); Cond = Builder.CreateICmpEQ(Counter, Constant::getNullValue( |