aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Unix/PathV2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Unix/PathV2.inc')
-rw-r--r--lib/Support/Unix/PathV2.inc4
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());