]> git.pld-linux.org Git - packages/opencl-clang.git/blob - llvm_clang_vfs.patch
f64fdf8bf920ebc90a98b8965dfea4b9441cf0ba
[packages/opencl-clang.git] / llvm_clang_vfs.patch
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
4 @@ -40,7 +40,7 @@
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"
13 @@ -215,9 +215,9 @@
14  
15      compiler->setDiagnostics(&*Diags);
16  
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);
24  
25      compiler->setVirtualFileSystem(OverlayFS);
This page took 0.035129 seconds and 2 git commands to generate.