[IR] Use std::optional in Module.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Fri, 25 Nov 2022 20:06:20 +0000 (12:06 -0800)
committerKazu Hirata <kazu@google.com>
Fri, 25 Nov 2022 20:06:20 +0000 (12:06 -0800)
commit5672b714fad68dd5e589254e0f5f1ce61eb31c5b
tree52d506600c0a22c236e43dc7cfdf01ff6562af2f
parent171b749dc130bd01ab5c716417c120918c4e6372
[IR] Use std::optional in Module.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/IR/Module.cpp