Mesa (master): swr: fix deprecated llvm 11 declaration warning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 15 13:26:42 UTC 2021


Module: Mesa
Branch: master
Commit: 12af7f97eec05b47d4e86a21f9199590839acfe2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=12af7f97eec05b47d4e86a21f9199590839acfe2

Author: Michel Zou <xantares09 at hotmail.com>
Date:   Wed Mar 10 22:12:43 2021 +0100

swr: fix deprecated llvm 11 declaration warning

Reviewed-by: Jan Zielinski <jan.zielinski at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9502>

---

 src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
index 3e7bc8b5df8..e54e23fc904 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
@@ -138,7 +138,7 @@ static inline llvm::AttributeSet GetFuncAttribSet(llvm::LLVMContext&       ctx,
 }
 #endif
 
-#if LLVM_VERSION_MAJOR >= 12
+#if LLVM_VERSION_MAJOR >= 11
 static inline llvm::VectorType* getVectorType(llvm::Type *ElementType, unsigned NumElements)
 {
     return llvm::VectorType::get(ElementType, NumElements, false);



More information about the mesa-commit mailing list