From: Vasileios Porpodas Date: Tue, 31 Jan 2023 01:13:29 +0000 (-0800) Subject: [Doc] Removes extra argument of ReplaceInstWithValue() X-Git-Tag: upstream/17.0.6~19117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=279f262d497e2bee90d4d5c981cafb5a89956542;p=platform%2Fupstream%2Fllvm.git [Doc] Removes extra argument of ReplaceInstWithValue() Differential Revision: https://reviews.llvm.org/D142944 --- diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst index d1b3744..00d51a5a 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``