MFH: r484600
emulators/rpcs3: unbreak build with clang > 6.0.0 Assertion failed: (D->getCachedLinkage() == LV.getLinkage()), function getLVForDecl, file /usr/src/contrib/llvm/tools/clang/lib/AST/Decl.cpp, line 1394. PR: 231952 Reported by: pkg-fallout Submitted by: Roman CAT Approved by: ports-secteam blanket
This commit is contained in:
parent
a840101341
commit
5660ac067c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q4/; revision=484601
16
emulators/rpcs3/files/patch-Utilities_typemap.h
Normal file
16
emulators/rpcs3/files/patch-Utilities_typemap.h
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Workaround for https://bugs.llvm.org/show_bug.cgi?id=39246
|
||||||
|
|
||||||
|
--- Utilities/typemap.h.orig 2018-11-09 13:19:59 UTC
|
||||||
|
+++ Utilities/typemap.h
|
||||||
|
@@ -196,7 +196,11 @@ namespace utils
|
||||||
|
|
||||||
|
// Type information for each used type
|
||||||
|
template <typename T>
|
||||||
|
+#if defined(__clang__) && (__clang_major__ > 6 || (__clang_major__ == 6 && __clang_patchlevel__ > 0))
|
||||||
|
+ const typeinfo<T> g_typeinfo{};
|
||||||
|
+#else
|
||||||
|
inline const typeinfo<T> g_typeinfo{};
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
template <typename T, typename B>
|
||||||
|
struct typepoly
|
Loading…
Reference in New Issue
Block a user