diff --git a/src/clang_complete.cc b/src/clang_complete.cc index 9d54e356..7fc1000d 100644 --- a/src/clang_complete.cc +++ b/src/clang_complete.cc @@ -503,7 +503,7 @@ BuildCompilerInstance(CompletionSession &session, Preamble->Preamble.OverridePreamble(*CI, session.FS, Bufs.back().get()); #else - Preamble->Preamble.AddImplicitPreamble(*CI, session->FS, + Preamble->Preamble.AddImplicitPreamble(*CI, session.FS, Bufs.back().get()); #endif } else { diff --git a/src/clang_tu.h b/src/clang_tu.h index 3723c458..108760fe 100644 --- a/src/clang_tu.h +++ b/src/clang_tu.h @@ -4,6 +4,7 @@ #pragma once #include "position.h" +#include #include #include