summaryrefslogtreecommitdiff
path: root/dev-util/perf/files/perf-5.4.6-fix-clang9.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/perf/files/perf-5.4.6-fix-clang9.patch')
-rw-r--r--dev-util/perf/files/perf-5.4.6-fix-clang9.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-util/perf/files/perf-5.4.6-fix-clang9.patch b/dev-util/perf/files/perf-5.4.6-fix-clang9.patch
new file mode 100644
index 000000000000..614e62f676d2
--- /dev/null
+++ b/dev-util/perf/files/perf-5.4.6-fix-clang9.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/695726
+Created-By: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
+Created-By: Dennis Schridde <devurandom@gmx.net>
+--- a/tools/perf/util/c++/clang.cpp.orig 2019-12-20 16:39:21.015363866 +0100
++++ b/tools/perf/util/c++/clang.cpp 2019-12-20 16:40:04.051639185 +0100
+@@ -71,7 +71,11 @@
+ CompilerInstance Clang;
+ Clang.createDiagnostics();
+
++#if CLANG_VERSION_MAJOR < 9
+ Clang.setVirtualFileSystem(&*VFS);
++#else
++ Clang.createFileManager(&*VFS);
++#endif
+
+ #if CLANG_VERSION_MAJOR < 4
+ IntrusiveRefCntPtr<CompilerInvocation> CI =