Module: Mesa
Branch: main
Commit: dce97f090a74f6f46df7999601fc16cdabe97782
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dce97f090a74f6f46df7999601fc16cdabe97782

Author: Michel Dänzer <[email protected]>
Date:   Wed Apr 26 11:05:47 2023 +0200

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>

---

 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 9899bbe0af6..869f8c6e2af 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<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,

Reply via email to