[PATCH] D142944: [Doc] Removes extra argument of ReplaceInstWithValue()
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 19:04:38 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG279f262d497e: [Doc] Removes extra argument of ReplaceInstWithValue() (authored by vporpo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142944/new/
https://reviews.llvm.org/D142944
Files:
llvm/docs/ProgrammersManual.rst
Index: llvm/docs/ProgrammersManual.rst
===================================================================
--- llvm/docs/ProgrammersManual.rst
+++ llvm/docs/ProgrammersManual.rst
@@ -2956,8 +2956,7 @@
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``
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142944.493471.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230131/52829937/attachment.bin>
More information about the llvm-commits
mailing list