diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 17:04:04 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 17:04:04 +0000 |
commit | f616b218c8cf2d6e85baf73a04d09f544beb3b89 (patch) | |
tree | 85275e5eb5620d7cbee64a593ca6370413048243 /llvm/lib/Support/Unix/PathV2.inc | |
parent | 82ebae7631ddb99d84eaf5e157365d4c164de799 (diff) | |
download | bcm5719-llvm-f616b218c8cf2d6e85baf73a04d09f544beb3b89.tar.gz bcm5719-llvm-f616b218c8cf2d6e85baf73a04d09f544beb3b89.zip |
Support/PathV2: Change most functions in the path namespace to return their work
via their return value instead of an out parameter.
llvm-svn: 121149
Diffstat (limited to 'llvm/lib/Support/Unix/PathV2.inc')
-rw-r--r-- | llvm/lib/Support/Unix/PathV2.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc index 3e75e9e1127..0facd6f4623 100644 --- a/llvm/lib/Support/Unix/PathV2.inc +++ b/llvm/lib/Support/Unix/PathV2.inc @@ -324,8 +324,7 @@ error_code unique_file(const Twine &model, int &result_fd, Model.c_str(); // Make model absolute by prepending a temp directory if it's not already. - bool absolute; - path::is_absolute(Twine(Model), absolute); + bool absolute = path::is_absolute(Twine(Model)); if (!absolute) { SmallString<128> TDir; if (error_code ec = TempDir(TDir)) return ec; |