aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/GVN.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
commit6776064d190701c5bae4d5403939eed2e480d1cd (patch)
tree4c1c1178faea69663c9960feb71cf5c5e5e39ff4 /lib/Transforms/Scalar/GVN.cpp
parent975f5917a28321017b7ecd1f102efb1ede4ff7a5 (diff)
downloadexternal_llvm-6776064d190701c5bae4d5403939eed2e480d1cd.tar.gz
external_llvm-6776064d190701c5bae4d5403939eed2e480d1cd.tar.bz2
external_llvm-6776064d190701c5bae4d5403939eed2e480d1cd.zip
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
Diffstat (limited to 'lib/Transforms/Scalar/GVN.cpp')
-rw-r--r--lib/Transforms/Scalar/GVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index a2d210a36f..f490a6d7f2 100644
--- a/lib/Transforms/Scalar/GVN.cpp
+++ b/lib/Transforms/Scalar/GVN.cpp
@@ -2059,7 +2059,7 @@ bool GVN::performPRE(Function& F) {
// will be available in the predecessor by the time we need them. Any
// that weren't original present will have been instantiated earlier
// in this loop.
- Instruction *PREInstr = CurInst->clone(CurInst->getContext());
+ Instruction *PREInstr = CurInst->clone();
bool success = true;
for (unsigned i = 0, e = CurInst->getNumOperands(); i != e; ++i) {
Value *Op = PREInstr->getOperand(i);