[all-commits] [llvm/llvm-project] 80145d: [ADT] Deprecate Optional::getPointer

kazutakahirata via All-commits all-commits at lists.llvm.org
Wed Nov 23 16:50:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80145dcb011b03a7c54fdfaa3a7beeaf5c18863a
      https://github.com/llvm/llvm-project/commit/80145dcb011b03a7c54fdfaa3a7beeaf5c18863a
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-11-23 (Wed, 23 Nov 2022)

  Changed paths:
    M llvm/include/llvm/ADT/Optional.h

  Log Message:
  -----------
  [ADT] Deprecate Optional::getPointer

This patch deprecates Optional::getPointer.  Note that I've converted
all known occurrences of X.getPointer() to &*X on Nov 21, 2022 in
commit 1f914944b6c9a5e4229ceb9f06140fdf178c5ea0.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716

Differential Revision: https://reviews.llvm.org/D138621




More information about the All-commits mailing list