From cfd185355b300318597c18bd149575239f8eac5a Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 7 Dec 2010 01:23:19 +0000 Subject: [PATCH] Support/PathV2: Use SmallVector::clear instead of set_size. llvm-svn: 121092 --- lib/Support/PathV2.cpp | 2 +- lib/Support/Unix/PathV2.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index 492903e4b53..7b99287e1e3 100644 --- a/lib/Support/PathV2.cpp +++ b/lib/Support/PathV2.cpp @@ -518,7 +518,7 @@ error_code replace_extension(SmallVectorImpl &path, error_code native(const Twine &path, SmallVectorImpl &result) { // Clear result. - result.set_size(0); + result.clear(); #ifdef LLVM_ON_WIN32 SmallString<128> path_storage; StringRef p = path.toStringRef(path_storage); diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index 4ca482dfce1..1362237199b 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());