1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Support/PathV2: Use SmallVector::clear instead of set_size.

llvm-svn: 121092
This commit is contained in:
Michael J. Spencer 2010-12-07 01:23:19 +00:00
parent a59a7b3965
commit cfd185355b
2 changed files with 3 additions and 3 deletions

View File

@ -518,7 +518,7 @@ error_code replace_extension(SmallVectorImpl<char> &path,
error_code native(const Twine &path, SmallVectorImpl<char> &result) {
// Clear result.
result.set_size(0);
result.clear();
#ifdef LLVM_ON_WIN32
SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage);

View File

@ -65,7 +65,7 @@ namespace {
#endif
(dir = "/tmp");
result.set_size(0);
result.clear();
StringRef d(dir);
result.append(d.begin(), d.end());
return success;
@ -400,7 +400,7 @@ rety_open_create:
return error_code(errno, system_category());
}
result_path.set_size(0);
result_path.clear();
StringRef d(real_path_buff);
result_path.append(d.begin(), d.end());