[Doc] Removes extra argument of ReplaceInstWithValue()
authorVasileios Porpodas <vporpodas@google.com>
Tue, 31 Jan 2023 01:13:29 +0000 (17:13 -0800)
committerVasileios 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

index d1b3744..00d51a5 100644 (file)
@@ -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``