diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 07:30:48 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 07:30:48 +0000 |
commit | 5a060775da43ec2ef37e839e93a0805d543708a9 (patch) | |
tree | 6cd7efaa67dec5d363323ccc5b9ee95c2e5bb8bd /lib/System/Unix/Unix.h | |
parent | 6f4c60770cfe6c485cdcb1397df59d2c7778cbc9 (diff) |
For PR797:
Eliminate exception throwing from Path::renamePathOnDisk and adjust its
users correspondingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Unix.h')
-rw-r--r-- | lib/System/Unix/Unix.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h index 1516d453dd..0f9b96adca 100644 --- a/lib/System/Unix/Unix.h +++ b/lib/System/Unix/Unix.h @@ -123,10 +123,10 @@ inline void ThrowErrno(const std::string& prefix, int errnum = -1) { /// string and the Unix error number given by \p errnum. If errnum is -1, the /// default then the value of errno is used. /// @brief Make an error message -inline void MakeErrMsg( +inline bool MakeErrMsg( std::string* ErrMsg, const std::string& prefix, int errnum = -1) { if (!ErrMsg) - return; + return true; char buffer[MAXPATHLEN]; buffer[0] = 0; if (errnum == -1) @@ -148,6 +148,7 @@ inline void MakeErrMsg( sprintf(buffer, "Error #%d", errnum); #endif *ErrMsg = buffer; + return true; } #endif |