[llvm] Use Optional::operator-> (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 21 Nov 2022 08:15:35 +0000 (00:15 -0800)
committerKazu Hirata <kazu@google.com>
Mon, 21 Nov 2022 08:15:35 +0000 (00:15 -0800)
commit20f6eb7c982b8d894775a3e28b7a4c402628aafa
tree51d6bccf62009645d971f06b3c6e4579309ee125
parent5a62e6b485e1df12d85d6e15dfe708113e09feef
[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
llvm/include/llvm/ExecutionEngine/Orc/Speculation.h