diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 03:57:37 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 03:57:37 +0000 |
commit | 936671b2eaa0a6b27903f8d85a8f4b28fcf8ee84 (patch) | |
tree | fca1e0d7dfad53f2a615e3af9e11320b35ebc5c4 /lib/Support/Unix/PathV2.inc | |
parent | ee271d8758c8493f2cadf5b9c0ec57431565891b (diff) |
Support/PathV2: Remove the error_code return type from all functions in the path
namespace. None of them return anything except for success anyway. These will be
converted to returning their result soon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/PathV2.inc')
-rw-r--r-- | lib/Support/Unix/PathV2.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index fc6b3867d5..3e75e9e112 100644 --- a/lib/Support/Unix/PathV2.inc +++ b/lib/Support/Unix/PathV2.inc @@ -325,11 +325,11 @@ error_code unique_file(const Twine &model, int &result_fd, // Make model absolute by prepending a temp directory if it's not already. bool absolute; - if (error_code ec = path::is_absolute(Twine(Model), absolute)) return ec; + path::is_absolute(Twine(Model), absolute); if (!absolute) { SmallString<128> TDir; if (error_code ec = TempDir(TDir)) return ec; - if (error_code ec = path::append(TDir, Twine(Model))) return ec; + path::append(TDir, Twine(Model)); Model.swap(TDir); } @@ -374,7 +374,7 @@ rety_open_create: SmallString<64> dir_to_create; for (path::const_iterator i = path::begin(p), e = --path::end(p); i != e; ++i) { - if (error_code ec = path::append(dir_to_create, *i)) return ec; + path::append(dir_to_create, *i); bool Exists; if (error_code ec = exists(Twine(dir_to_create), Exists)) return ec; if (!Exists) { |