diff --git a/src/pipeline.cc b/src/pipeline.cc index 0bd65fc8..45a29742 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -377,7 +377,7 @@ bool indexer_Parse(SemaManager *completion, WorkingFiles *wfiles, SmallString<256> msg; (Twine(deleted ? "delete " : "parse ") + path_to_index).toVector(msg); if (n_errs) - msg += (" error:" + Twine(n_errs) + " " + first_error).toStringRef(tmp); + msg += " error:" + std::to_string(n_errs) + ' ' + first_error; if (LOG_V_ENABLED(1)) { msg += "\n "; for (const char *arg : entry.args)