MINGW-packages/mingw-w64-llvm-16/0005-Fix-Any-linker-error-with-multiple-compilers.patch
2025-01-23 09:34:32 +01:00

12 lines
324 B
Diff

--- a/include/llvm/ADT/Any.h
+++ b/include/llvm/ADT/Any.h
@@ -124,7 +124,7 @@
std::unique_ptr<StorageBase> Storage;
};
-template <typename T> char Any::TypeId<T>::Id = 0;
+template <typename T> char Any::TypeId<T>::Id = 1;
template <typename T>
LLVM_DEPRECATED("Use any_cast(Any*) != nullptr instead", "any_cast")