aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit98c7a114de14b80bfc1741a11e87394e79b70c48 (patch)
tree96bf2d8f80fd60ecab4530828d55062fe79c0874 /llvm/lib/Support/PathV2.cpp
parent5529c57cfe39cbbd8c81dc0d8da9d61196ca71cd (diff)
downloadllvm-98c7a114de14b80bfc1741a11e87394e79b70c48.zip
llvm-98c7a114de14b80bfc1741a11e87394e79b70c48.tar.gz
llvm-98c7a114de14b80bfc1741a11e87394e79b70c48.tar.bz2
Support/PathV2: Use SmallVector::clear instead of set_size.
llvm-svn: 121092
Diffstat (limited to 'llvm/lib/Support/PathV2.cpp')
-rw-r--r--llvm/lib/Support/PathV2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp
index 492903e..7b99287 100644
--- a/llvm/lib/Support/PathV2.cpp
+++ b/llvm/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);