mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Support/PathV2: Use SmallVector::clear instead of set_size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ad8a14f24e
commit
fbd1bbd7fa
@ -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);
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user