[X86] Use std::optional in X86SpeculativeLoadHardening.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 26 Nov 2022 07:13:23 +0000 (23:13 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 26 Nov 2022 07:13:23 +0000 (23:13 -0800)
commit3583f4ff4b1ea15779467506b36720437e1ab7c3
tree61fa7c4c969f855a6e7afeb2bef4e04e2ee73b68
parent14931309015d62b5cdfe40d1c89433896c7df16c
[X86] Use std::optional in X86SpeculativeLoadHardening.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/Target/X86/X86SpeculativeLoadHardening.cpp