summaryrefslogtreecommitdiff
path: root/dev-util/perf/files/perf-5.4.6-fix-clang9.patch
blob: 614e62f676d27765adaf17113f6ffaf0a44eaa90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 =