aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 01:23:19 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 01:23:19 +0000
commitfbd1bbd7fa0ca592d09edea557806da05084a432 (patch)
tree7a5aaff4dde8edfbe7ef75ee6625126ab19e2e0f /lib/Support/PathV2.cpp
parentad8a14f24eb3daee61c8076ff6e5a8135f4dd124 (diff)
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
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index 492903e4b5..7b99287e1e 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -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);