[llvm] 279f262 - [Doc] Removes extra argument of ReplaceInstWithValue()
Vasileios Porpodas via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 19:04:25 PST 2023
Author: Vasileios Porpodas
Date: 2023-01-30T19:03:51-08:00
New Revision: 279f262d497e2bee90d4d5c981cafb5a89956542
URL: https://github.com/llvm/llvm-project/commit/279f262d497e2bee90d4d5c981cafb5a89956542
DIFF: https://github.com/llvm/llvm-project/commit/279f262d497e2bee90d4d5c981cafb5a89956542.diff
LOG: [Doc] Removes extra argument of ReplaceInstWithValue()
Differential Revision: https://reviews.llvm.org/D142944
Added:
Modified:
llvm/docs/ProgrammersManual.rst
Removed:
################################################################################
diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst
index d1b3744e22da0..00d51a5a05b85 100644
--- a/llvm/docs/ProgrammersManual.rst
+++ b/llvm/docs/ProgrammersManual.rst
@@ -2956,8 +2956,7 @@ Deleting Instructions
AllocaInst* instToReplace = ...;
BasicBlock::iterator ii(instToReplace);
- ReplaceInstWithValue(instToReplace->getParent(), ii,
- Constant::getNullValue(PointerType::getUnqual(Type::Int32Ty)));
+ ReplaceInstWithValue(ii, Constant::getNullValue(PointerType::getUnqual(Type::Int32Ty)));
* ``ReplaceInstWithInst``
More information about the llvm-commits
mailing list