[all-commits] [llvm/llvm-project] 20f6eb: [llvm] Use Optional::operator-> (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Mon Nov 21 00:15:50 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20f6eb7c982b8d894775a3e28b7a4c402628aafa
      https://github.com/llvm/llvm-project/commit/20f6eb7c982b8d894775a3e28b7a4c402628aafa
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-11-21 (Mon, 21 Nov 2022)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/Orc/Speculation.h

  Log Message:
  -----------
  [llvm] Use Optional::operator-> (NFC)

Since std::optional does not offer getPointer(), this patch replaces
X.getPointer()->foo with X->foo to make the migration from
llvm::Optional to std::optional easier.

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




More information about the All-commits mailing list