[ADT] Deprecate Optional::getValueOr (NFC)
authorKazu Hirata <kazu@google.com>
Tue, 26 Jul 2022 06:01:02 +0000 (23:01 -0700)
committerKazu Hirata <kazu@google.com>
Tue, 26 Jul 2022 06:01:02 +0000 (23:01 -0700)
commitc8cf669f6025bdf0fc227f3ddbbf3523a5b32f0b
tree848e71178fe5ec4d788c752df879e3247b98a122
parent3356d72a5ffa69324f8fdbc067c440cda8154797
[ADT] Deprecate Optional::getValueOr (NFC)

This patch deprecates getValueOr in favor of value_or.

Differential Revision: https://reviews.llvm.org/D130140
llvm/include/llvm/ADT/Optional.h
llvm/unittests/ADT/OptionalTest.cpp