diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-09-27 07:38:41 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-09-27 07:38:41 +0000 |
commit | 6776064d190701c5bae4d5403939eed2e480d1cd (patch) | |
tree | 4c1c1178faea69663c9960feb71cf5c5e5e39ff4 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 975f5917a28321017b7ecd1f102efb1ede4ff7a5 (diff) |
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/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 158b0d7f18..e2d9e0b9ec 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -292,7 +292,7 @@ void IndVarSimplify::RewriteLoopExitValues(Loop *L, if (NumPreds != 1) { // Clone the PHI and delete the original one. This lets IVUsers and // any other maps purge the original user from their records. - PHINode *NewPN = PN->clone(PN->getContext()); + PHINode *NewPN = PN->clone(); NewPN->takeName(PN); NewPN->insertBefore(PN); PN->replaceAllUsesWith(NewPN); |