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>
(cherry picked from commit dce97f090a)
This commit is contained in:
Michel Dänzer 2023-04-26 11:05:47 +02:00 committed by Eric Engestrom
parent 1bdaca4da9
commit 3410e08f53
2 changed files with 2 additions and 2 deletions

View file

@ -1498,7 +1498,7 @@
"description": "clover/llvm: Use std::nullopt already with LLVM 16",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

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,