From fbd1bbd7fa0ca592d09edea557806da05084a432 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 7 Dec 2010 01:23:19 +0000 Subject: 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 --- lib/Support/PathV2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support/PathV2.cpp') diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index 492903e4b5..7b99287e1e 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); -- cgit v1.2.3-70-g09d2