diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-22 08:16:57 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-22 08:16:57 +0000 |
commit | 040dd82f4497a1dc00d1b42df39274150c1b8fdb (patch) | |
tree | 0c607a36e2f78ed5efabd20675e324bc9109d3e8 /llvm/lib/Transforms/Instrumentation | |
parent | 43025a08699db9ca83c4f5a4607e056aab470b04 (diff) | |
download | bcm5719-llvm-040dd82f4497a1dc00d1b42df39274150c1b8fdb.tar.gz bcm5719-llvm-040dd82f4497a1dc00d1b42df39274150c1b8fdb.zip |
Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to use
ArrayRef.
llvm-svn: 135761
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index bd1b46307e9..c6dadcfecb6 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -478,8 +478,7 @@ bool GCOVProfiler::emitProfileArcs(DebugInfoFinder &DIF) { SmallVector<Value *, 2> Idx; Idx.push_back(Constant::getNullValue(Type::getInt64Ty(*Ctx))); Idx.push_back(Sel); - Value *Counter = Builder.CreateInBoundsGEP(Counters, - Idx.begin(), Idx.end()); + Value *Counter = Builder.CreateInBoundsGEP(Counters, Idx); Value *Count = Builder.CreateLoad(Counter); Count = Builder.CreateAdd(Count, ConstantInt::get(Type::getInt64Ty(*Ctx),1)); |