From ea28e50d0f6536ce25fe990c260e659456264858 Mon Sep 17 00:00:00 2001 From: firstlove <37442588+FirstLoveLife@users.noreply.github.com> Date: Wed, 29 Aug 2018 23:33:20 +0800 Subject: [PATCH] fix clang_tu.h && clang_complete.cc (#61) --- src/clang_complete.cc | 2 +- src/clang_tu.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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