Remove raw_svector_ostream::flush() call following r244928.
llvm-svn: 244935
This commit is contained in:
parent
a175eb6ca6
commit
baf355bc5a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue