[PATCH] D140054: [docs] Updates ProgrammersManual to reflect the change that BasicBlock::getInstList() is private.

Vasileios Porpodas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 17:09:57 PST 2023


vporpo added inline comments.


================
Comment at: llvm/docs/ProgrammersManual.rst:2990
 
-    ReplaceInstWithValue(instToReplace->getParent()->getInstList(), ii,
                          Constant::getNullValue(PointerType::getUnqual(Type::Int32Ty)));
----------------
dbabokin wrote:
> New version of `ReplaceInstWithValue` accepts only two argument, so looks like the whole `instToReplace->getParent()` needs to be removed.
Good catch, let me try to fix this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140054/new/

https://reviews.llvm.org/D140054



More information about the llvm-commits mailing list