From dce97f090a74f6f46df7999601fc16cdabe97782 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Wed, 26 Apr 2023 11:05:47 +0200 Subject: [PATCH] clover/llvm: Use std::nullopt already with LLVM 16 llvm::None is already deprecated and defined as std::nullopt in LLVM 16. Part-of: --- src/gallium/frontends/clover/llvm/codegen/native.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/clover/llvm/codegen/native.cpp b/src/gallium/frontends/clover/llvm/codegen/native.cpp index 9899bbe..869f8c6 100644 --- a/src/gallium/frontends/clover/llvm/codegen/native.cpp +++ b/src/gallium/frontends/clover/llvm/codegen/native.cpp @@ -116,7 +116,7 @@ namespace { std::unique_ptr 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, -- 2.7.4