summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-19 07:34:47 +0000
committerChris Lattner <sabre@nondot.org>2007-02-19 07:34:47 +0000
commitb5f6d0c15a945e597b462c99183430bd1184722c (patch)
tree094a91153943a3e45ca89f323f14fb531ba832fc /llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
parent80b65db862eac831869fcb4e2bfdd2fc381be36f (diff)
downloadbcm5719-llvm-b5f6d0c15a945e597b462c99183430bd1184722c.tar.gz
bcm5719-llvm-b5f6d0c15a945e597b462c99183430bd1184722c.zip
eliminate use of deprecated apis
llvm-svn: 34417
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/RSProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/RSProfiling.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
index fc464c00ec2..2b3adb27cd6 100644
--- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
@@ -335,7 +335,8 @@ void RSProfilers_std::IncrementCounterInBlock(BasicBlock *BB, unsigned CounterNu
std::vector<Constant*> Indices(2);
Indices[0] = Constant::getNullValue(Type::Int32Ty);
Indices[1] = ConstantInt::get(Type::Int32Ty, CounterNum);
- Constant *ElementPtr = ConstantExpr::getGetElementPtr(CounterArray, Indices);
+ Constant *ElementPtr = ConstantExpr::getGetElementPtr(CounterArray,
+ &Indices[0], 2);
// Load, increment and store the value back.
Value *OldVal = new LoadInst(ElementPtr, "OldCounter", InsertPos);
OpenPOWER on IntegriCloud