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:
Michael J. Spencer
2010-12-07 01:23:19 +00:00
parent ad8a14f24e
commit fbd1bbd7fa
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);