diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst --- a/llvm/docs/ProgrammersManual.rst +++ b/llvm/docs/ProgrammersManual.rst @@ -2956,8 +2956,7 @@ 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``