diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:23:19 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:23:19 +0000 |
commit | fbd1bbd7fa0ca592d09edea557806da05084a432 (patch) | |
tree | 7a5aaff4dde8edfbe7ef75ee6625126ab19e2e0f /lib/Support/Unix | |
parent | ad8a14f24eb3daee61c8076ff6e5a8135f4dd124 (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/Unix')
-rw-r--r-- | lib/Support/Unix/PathV2.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index 4ca482dfce..1362237199 100644 --- a/lib/Support/Unix/PathV2.inc +++ b/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()); |