[IR] Use std::optional in InstrTypes.h (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 22:40:05 +0000 (14:40 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 22:40:05 +0000 (14:40 -0800)
commit6fd5c0b76a0c4e0ae189ac3064d1e279b66fd86c
tree7a6e4f80ad087c31ef64063107ac70051af8a3ac
parentcc0764e7fa4bfacdfafe0717446a72843eb29143
[IR] Use std::optional in InstrTypes.h (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/include/llvm/IR/InstrTypes.h