summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-25 09:48:08 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-25 09:48:08 +0000
commitd1b7849d49d968a6f5398eb5534a763d42be97b8 (patch)
tree80773d650d8c3049e3a9fdc3e21597e7853925b7 /llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
parent1dba445e433aea5bb188e424650c912f620ad341 (diff)
downloadbcm5719-llvm-d1b7849d49d968a6f5398eb5534a763d42be97b8.tar.gz
bcm5719-llvm-d1b7849d49d968a6f5398eb5534a763d42be97b8.zip
Convert GetElementPtrInst to use ArrayRef.
llvm-svn: 135904
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/PathProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/PathProfiling.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp b/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
index c6147fa18f4..ee3cff76d01 100644
--- a/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PathProfiling.cpp
@@ -1029,8 +1029,7 @@ void PathProfiler::insertCounterIncrement(Value* incValue,
gepIndices[1] = incValue;
GetElementPtrInst* pcPointer =
- GetElementPtrInst::Create(dag->getCounterArray(),
- gepIndices.begin(), gepIndices.end(),
+ GetElementPtrInst::Create(dag->getCounterArray(), gepIndices,
"counterInc", insertPoint);
// Load from the array - call it oldPC
OpenPOWER on IntegriCloud