From 279f262d497e2bee90d4d5c981cafb5a89956542 Mon Sep 17 00:00:00 2001 From: Vasileios Porpodas Date: Mon, 30 Jan 2023 17:13:29 -0800 Subject: [PATCH] [Doc] Removes extra argument of ReplaceInstWithValue() Differential Revision: https://reviews.llvm.org/D142944 --- llvm/docs/ProgrammersManual.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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`` -- 2.7.4