File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
tools/SourceKit/tools/sourcekitd/lib/API Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 3030#include " SourceKit/SwiftLang/Factory.h"
3131
3232#include " swift/Basic/ExponentialGrowthAppendingBinaryByteStream.h"
33+ #include " swift/Basic/LLVMInitialize.h"
3334#include " swift/Basic/Mangler.h"
3435#include " swift/Basic/Statistic.h"
3536#include " swift/Basic/Version.h"
@@ -107,6 +108,7 @@ static SourceKit::Context *GlobalCtx = nullptr;
107108void sourcekitd::initializeService (
108109 StringRef runtimeLibPath, StringRef diagnosticDocumentationPath,
109110 std::function<void (sourcekitd_response_t )> postNotification) {
111+ INITIALIZE_LLVM ();
110112 llvm::EnablePrettyStackTrace ();
111113 GlobalCtx =
112114 new SourceKit::Context (runtimeLibPath, diagnosticDocumentationPath,
You can’t perform that action at this time.
0 commit comments