Index: clangd/ClangdUnit.cpp =================================================================== --- clangd/ClangdUnit.cpp +++ clangd/ClangdUnit.cpp @@ -31,7 +31,6 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" -#include "llvm/Support/CrashRecoveryContext.h" #include "llvm/Support/raw_ostream.h" #include @@ -141,10 +140,6 @@ if (!Clang) return llvm::None; - // Recover resources if we crash before exiting this method. - llvm::CrashRecoveryContextCleanupRegistrar CICleanup( - Clang.get()); - auto Action = llvm::make_unique(); const FrontendInputFile &MainInput = Clang->getFrontendOpts().Inputs[0]; if (!Action->BeginSourceFile(*Clang, MainInput)) {