[IR] Use std::optional in Instructions.h (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 22:40:07 +0000 (14:40 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 22:40:07 +0000 (14:40 -0800)
commita18ca456342267039edb693850595137169c99dd
treed7d6cd5b845347a28ca7bfb4b6520c956d12c88c
parent6fd5c0b76a0c4e0ae189ac3064d1e279b66fd86c
[IR] Use std::optional in Instructions.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/Instructions.h