Commit baf355bc authored by Yaron Keren's avatar Yaron Keren
Browse files

Remove raw_svector_ostream::flush() call following r244928.

llvm-svn: 244935
parent a175eb6c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -217,7 +217,6 @@ HostInfoPosix::ComputePythonDirectory(FileSpec &file_spec)
    llvm::SmallString<256> python_version_dir;
    llvm::raw_svector_ostream os(python_version_dir);
    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?
    ::strncat(raw_path, python_version_dir.c_str(), sizeof(raw_path) - strlen(raw_path) - 1);