[LiveDebugValues] Use std::optional in InstrRefBasedImpl.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 26 Nov 2022 22:52:33 +0000 (14:52 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 26 Nov 2022 22:52:33 +0000 (14:52 -0800)
commit3ff6ed810381846c37be960e13d7f71596226a3f
treeab72784a09f3cefcde205936c8a35ae9ff1fd70c
parent5076bdf6e9c244fee08831b9409cb5474625ab6f
[LiveDebugValues] Use std::optional in InstrRefBasedImpl.cpp (NFC)

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/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp