diff --git a/src/messages/initialize.cc b/src/messages/initialize.cc index 0aa0488c..b2715004 100644 --- a/src/messages/initialize.cc +++ b/src/messages/initialize.cc @@ -282,7 +282,7 @@ void Initialize(MessageHandler *m, InitializeParam ¶m, ReplyOnce &reply) { if (g_config->cacheDirectory.size()) { SmallString<256> Path(g_config->cacheDirectory); - sys::fs::make_absolute(Path); + sys::fs::make_absolute(project_path, Path); g_config->cacheDirectory = Path.str(); EnsureEndsInSlash(g_config->cacheDirectory); } diff --git a/src/pipeline.cc b/src/pipeline.cc index f8cc454a..e03158b7 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -31,7 +31,6 @@ limitations under the License. #include #include -#include using namespace llvm; #include @@ -435,10 +434,7 @@ void Main_OnIndexed(DB *db, WorkingFiles *wfiles, IndexUpdate *update) { return; } - static Timer timer("apply", "apply index"); - timer.startTimer(); db->ApplyIndexUpdate(update); - timer.stopTimer(); // Update indexed content, skipped ranges, and semantic highlighting. if (update->files_def_update) {