From 5660ac067cca5d3d2b206044a16fbe4ea0383d5f Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 10 Nov 2018 10:28:33 +0000 Subject: [PATCH] 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 --- emulators/rpcs3/files/patch-Utilities_typemap.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 emulators/rpcs3/files/patch-Utilities_typemap.h diff --git a/emulators/rpcs3/files/patch-Utilities_typemap.h b/emulators/rpcs3/files/patch-Utilities_typemap.h new file mode 100644 index 000000000000..63d9a0c248f8 --- /dev/null +++ b/emulators/rpcs3/files/patch-Utilities_typemap.h @@ -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 ++#if defined(__clang__) && (__clang_major__ > 6 || (__clang_major__ == 6 && __clang_patchlevel__ > 0)) ++ const typeinfo g_typeinfo{}; ++#else + inline const typeinfo g_typeinfo{}; ++#endif + + template + struct typepoly