diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
commit | 4fdeba97063da375ba360a021db34f025c0d9faf (patch) | |
tree | cd662afb216dfa9b654e98cc1033a4dca474d8d2 /llvm/lib/Transforms/Instrumentation/RSProfiling.cpp | |
parent | f060b4d9771d1035891aa458f5688ed8c12a30d4 (diff) | |
download | bcm5719-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.cpp | 2 |
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); |