summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-15 23:53:25 +0000
committerOwen Anderson <resistor@mac.com>2009-07-15 23:53:25 +0000
commit4fdeba97063da375ba360a021db34f025c0d9faf (patch)
treecd662afb216dfa9b654e98cc1033a4dca474d8d2 /llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
parentf060b4d9771d1035891aa458f5688ed8c12a30d4 (diff)
downloadbcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.tar.gz
bcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.zip
Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.
llvm-svn: 75863
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/RSProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/RSProfiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
index ad76ba44807..36b44643113 100644
--- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
@@ -248,7 +248,7 @@ void GlobalRandomCounterOpt::PrepFunction(Function* F) {
//make a local temporary to cache the global
BasicBlock& bb = F->getEntryBlock();
BasicBlock::iterator InsertPt = bb.begin();
- AI = new AllocaInst(*F->getContext(), T, 0, "localcounter", InsertPt);
+ AI = new AllocaInst(T, 0, "localcounter", InsertPt);
LoadInst* l = new LoadInst(Counter, "counterload", InsertPt);
new StoreInst(l, AI, InsertPt);
OpenPOWER on IntegriCloud