aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2024-11-21 13:04:30 +0100
committerSylvestre Ledru <sylvestre@debian.org>2024-11-21 13:04:30 +0100
commita1153cd6fedd4c906a9840987934ca4712e34cb2 (patch)
tree5b267500546cc06032b49c0153f6aa1e92cbb74c /clang/lib/Interpreter/Interpreter.cpp
parent0b06301a1d839eb5f73559f6c3daf9049c34f3af (diff)
downloadllvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.zip
llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.tar.gz
llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.tar.bz2
Revert "[NFC] Explicitly pass a VFS when creating DiagnosticsEngine (#115852)"
Reverted for causing: https://github.com/llvm/llvm-project/issues/117145 This reverts commit bdd10d9d249bd1c2a45e3de56a5accd97e953458.
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 5dc67f6..94f0156 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -15,7 +15,6 @@
#include "IncrementalExecutor.h"
#include "IncrementalParser.h"
#include "InterpreterUtils.h"
-#include "llvm/Support/VirtualFileSystem.h"
#ifdef __EMSCRIPTEN__
#include "Wasm.h"
#endif // __EMSCRIPTEN__
@@ -107,7 +106,7 @@ CreateCI(const llvm::opt::ArgStringList &Argv) {
CompilerInvocation::GetResourcesPath(Argv[0], nullptr);
// Create the actual diagnostics engine.
- Clang->createDiagnostics(*llvm::vfs::getRealFileSystem());
+ Clang->createDiagnostics();
if (!Clang->hasDiagnostics())
return llvm::createStringError(llvm::errc::not_supported,
"Initialization failed. "