diff --git a/src/messages/textDocument_completion.cc b/src/messages/textDocument_completion.cc index 862bdafd..dac6673c 100644 --- a/src/messages/textDocument_completion.cc +++ b/src/messages/textDocument_completion.cc @@ -394,7 +394,12 @@ public: std::vector ls_items; CompletionConsumer(const CodeCompleteOptions &Opts, bool from_cache) - : CodeCompleteConsumer(Opts, false), + : +#if LLVM_VERSION_MAJOR >= 9 // rC358696 + CodeCompleteConsumer(Opts), +#else + CodeCompleteConsumer(Opts, false), +#endif Alloc(std::make_shared()), CCTUInfo(Alloc), from_cache(from_cache) {} diff --git a/src/messages/textDocument_signatureHelp.cc b/src/messages/textDocument_signatureHelp.cc index 3993b4ef..1c4700ae 100644 --- a/src/messages/textDocument_signatureHelp.cc +++ b/src/messages/textDocument_signatureHelp.cc @@ -63,9 +63,14 @@ class SignatureHelpConsumer : public CodeCompleteConsumer { public: bool from_cache; SignatureHelp ls_sighelp; - SignatureHelpConsumer(const clang::CodeCompleteOptions &CCOpts, + SignatureHelpConsumer(const clang::CodeCompleteOptions &Opts, bool from_cache) - : CodeCompleteConsumer(CCOpts, false), + : +#if LLVM_VERSION_MAJOR >= 9 // rC358696 + CodeCompleteConsumer(Opts), +#else + CodeCompleteConsumer(Opts, false), +#endif Alloc(std::make_shared()), CCTUInfo(Alloc), from_cache(from_cache) {} void ProcessOverloadCandidates(Sema &S, unsigned CurrentArg,