2021-02-23 21:46:39 +08:00
|
|
|
diff --unified --recursive --text mesa.orig/src/gallium/frontends/clover/llvm/metadata.hpp mesa.new/src/gallium/frontends/clover/llvm/metadata.hpp
|
|
|
|
--- mesa.orig/src/gallium/frontends/clover/llvm/metadata.hpp 2021-02-14 13:15:16.994404651 +0100
|
|
|
|
+++ mesa.new/src/gallium/frontends/clover/llvm/metadata.hpp 2021-02-14 13:19:11.096855317 +0100
|
|
|
|
@@ -129,7 +129,11 @@
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (type->isVectorTy())
|
|
|
|
- data += std::to_string(((::llvm::VectorType*)type)->getNumElements());
|
|
|
|
+#if LLVM_VERSION_MAJOR >= 13
|
|
|
|
+ data += std::to_string(((::llvm::FixedVectorType*)type)->getNumElements());
|
|
|
|
+#else
|
2021-02-24 16:22:35 +08:00
|
|
|
+ data += std::to_string(((::llvm::VectorType*)type)->getNumElements());
|
2021-02-23 21:46:39 +08:00
|
|
|
+#endif
|
|
|
|
|
|
|
|
} else {
|
|
|
|
::llvm::raw_string_ostream os { data };
|