mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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:
parent
1bdaca4da9
commit
3410e08f53
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue