summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/PathV2.inc
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/Unix/PathV2.inc
parent5529c57cfe39cbbd8c81dc0d8da9d61196ca71cd (diff)
downloadbcm5719-llvm-98c7a114de14b80bfc1741a11e87394e79b70c48.tar.gz
bcm5719-llvm-98c7a114de14b80bfc1741a11e87394e79b70c48.zip
Support/PathV2: Use SmallVector::clear instead of set_size.
llvm-svn: 121092
Diffstat (limited to 'llvm/lib/Support/Unix/PathV2.inc')
-rw-r--r--llvm/lib/Support/Unix/PathV2.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc
index 4ca482dfce1..1362237199b 100644
--- a/llvm/lib/Support/Unix/PathV2.inc
+++ b/llvm/lib/Support/Unix/PathV2.inc
@@ -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());
OpenPOWER on IntegriCloud