Remove raw_svector_ostream::flush() call following r244928.

llvm-svn: 244935
This commit is contained in:
Yaron Keren 2015-08-13 18:42:29 +00:00
parent a175eb6ca6
commit baf355bc5a
1 changed files with 0 additions and 1 deletions

View File

@ -217,7 +217,6 @@ HostInfoPosix::ComputePythonDirectory(FileSpec &file_spec)
llvm::SmallString<256> python_version_dir; llvm::SmallString<256> python_version_dir;
llvm::raw_svector_ostream os(python_version_dir); llvm::raw_svector_ostream os(python_version_dir);
os << "/python" << PY_MAJOR_VERSION << '.' << PY_MINOR_VERSION << "/site-packages"; os << "/python" << PY_MAJOR_VERSION << '.' << PY_MINOR_VERSION << "/site-packages";
os.flush();
// We may get our string truncated. Should we protect this with an assert? // We may get our string truncated. Should we protect this with an assert?
::strncat(raw_path, python_version_dir.c_str(), sizeof(raw_path) - strlen(raw_path) - 1); ::strncat(raw_path, python_version_dir.c_str(), sizeof(raw_path) - strlen(raw_path) - 1);