summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-09-27 07:38:41 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-09-27 07:38:41 +0000
commit42fb7452dfbc20c31c97c2d88ef5e6019323377a (patch)
tree9916e929fa89b09b0203aa80e5139da35bb63dae /llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
parentb56e1ab03368a470159bb7b31c4d96bc016a1cda (diff)
downloadbcm5719-llvm-42fb7452dfbc20c31c97c2d88ef5e6019323377a.tar.gz
bcm5719-llvm-42fb7452dfbc20c31c97c2d88ef5e6019323377a.zip
Instruction::clone does not need to take an LLVMContext&. Remove that and
update all the callers. llvm-svn: 82889
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 9997d9dca98..3b72260db84 100644
--- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
@@ -397,7 +397,7 @@ Value* ProfilerRS::Translate(Value* v) {
return i;
} else {
//translate this
- Instruction* i2 = i->clone(v->getContext());
+ Instruction* i2 = i->clone();
if (i->hasName())
i2->setName("dup_" + i->getName());
TransCache[i] = i2;
OpenPOWER on IntegriCloud