diff options
author | Kazu Hirata <kazu@google.com> | 2022-11-21 00:15:35 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-11-21 00:15:35 -0800 |
commit | 20f6eb7c982b8d894775a3e28b7a4c402628aafa (patch) | |
tree | 51d6bccf62009645d971f06b3c6e4579309ee125 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 5a62e6b485e1df12d85d6e15dfe708113e09feef (diff) | |
download | llvm-20f6eb7c982b8d894775a3e28b7a4c402628aafa.zip llvm-20f6eb7c982b8d894775a3e28b7a4c402628aafa.tar.gz llvm-20f6eb7c982b8d894775a3e28b7a4c402628aafa.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions