clover/llvm: Use std::nullopt already with LLVM 16

llvm::None is already deprecated and defined as std::nullopt in LLVM 16.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22718>
This commit is contained in:
Michel Dänzer 2023-04-26 11:05:47 +02:00 committed by Marge Bot
parent 4ee1572008
commit dce97f090a

View file

@ -116,7 +116,7 @@ namespace {
std::unique_ptr<TargetMachine> tm {
t->createTargetMachine(target.triple, target.cpu, "", {},
#if LLVM_VERSION_MAJOR >= 17
#if LLVM_VERSION_MAJOR >= 16
std::nullopt, std::nullopt,
#else
::llvm::None, ::llvm::None,