projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7087f05
)
[Doc] Removes extra argument of ReplaceInstWithValue()
author
Vasileios Porpodas
<vporpodas@google.com>
Tue, 31 Jan 2023 01:13:29 +0000
(17:13 -0800)
committer
Vasileios Porpodas
<vporpodas@google.com>
Tue, 31 Jan 2023 03:03:51 +0000
(19:03 -0800)
Differential Revision: https://reviews.llvm.org/D142944
llvm/docs/ProgrammersManual.rst
patch
|
blob
|
history
diff --git
a/llvm/docs/ProgrammersManual.rst
b/llvm/docs/ProgrammersManual.rst
index
d1b3744
..
00d51a5
100644
(file)
--- 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``