1 diff -dur opencl-clang-8.0.1.orig/common_clang.cpp opencl-clang-8.0.1/common_clang.cpp
2 --- opencl-clang-8.0.1.orig/common_clang.cpp 2019-06-04 15:59:30.000000000 +0200
3 +++ opencl-clang-8.0.1/common_clang.cpp 2019-06-27 10:24:52.000000000 +0200
5 #include "llvm/Support/TargetSelect.h"
6 #include "llvm/Support/ManagedStatic.h"
7 #include "llvm/Support/Mutex.h"
8 -#include "llvm/Support/VirtualFileSystem.h"
9 +#include "clang/Basic/VirtualFileSystem.h"
10 #include "clang/Basic/LangOptions.h"
11 #include "clang/Basic/Diagnostic.h"
12 #include "clang/Basic/DiagnosticIDs.h"
15 compiler->setDiagnostics(&*Diags);
17 - auto OverlayFS = new llvm::vfs::OverlayFileSystem(
18 - llvm::vfs::getRealFileSystem());
19 - auto MemFS = new llvm::vfs::InMemoryFileSystem();
20 + auto OverlayFS = new clang::vfs::OverlayFileSystem(
21 + clang::vfs::getRealFileSystem());
22 + auto MemFS = new clang::vfs::InMemoryFileSystem();
23 OverlayFS->pushOverlay(MemFS);
25 compiler->setVirtualFileSystem(OverlayFS);