commit | c94270c382320cb3fe9c4dc7bf31d56c94e9643d | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Sun Sep 27 07:38:41 2009 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Sun Sep 27 07:38:41 2009 +0000 |
tree | 4c1c1178faea69663c9960feb71cf5c5e5e39ff4 | |
parent | ebb9633af0245a3eaf03d2a9f4ceb6375cc8769e [diff] [blame] |
Instruction::clone does not need to take an LLVMContext&. Remove that and update all the callers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82889 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Instrumentation/RSProfiling.cpp b/lib/Transforms/Instrumentation/RSProfiling.cpp index 9997d9d..3b72260 100644 --- a/lib/Transforms/Instrumentation/RSProfiling.cpp +++ b/lib/Transforms/Instrumentation/RSProfiling.cpp
@@ -397,7 +397,7 @@ 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;