mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 10:08:59 +08:00
Remove raw_svector_ostream::flush() call following r244928.
llvm-svn: 244935
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user