[PATCH] D142944: [Doc] Removes extra argument of ReplaceInstWithValue()
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 17:14:32 PST 2023
vporpo created this revision.
vporpo added a reviewer: dbabokin.
Herald added a project: All.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142944
Files:
llvm/docs/ProgrammersManual.rst
Index: llvm/docs/ProgrammersManual.rst
===================================================================
--- llvm/docs/ProgrammersManual.rst
+++ llvm/docs/ProgrammersManual.rst
@@ -2956,7 +2956,7 @@
AllocaInst* instToReplace = ...;
BasicBlock::iterator ii(instToReplace);
- ReplaceInstWithValue(instToReplace->getParent(), ii,
+ ReplaceInstWithValue(ii,
Constant::getNullValue(PointerType::getUnqual(Type::Int32Ty)));
* ``ReplaceInstWithInst``
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142944.493457.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230131/50f7d04d/attachment.bin>
More information about the llvm-commits
mailing list