From 879ed5ab9c372c5bd42fab8dcdf78628aa479639 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 23 Aug 2006 07:30:48 +0000 Subject: For PR797: Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. llvm-svn: 29843 --- llvm/lib/System/Unix/Unix.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/System/Unix/Unix.h') diff --git a/llvm/lib/System/Unix/Unix.h b/llvm/lib/System/Unix/Unix.h index 1516d453dd9..0f9b96adca0 100644 --- a/llvm/lib/System/Unix/Unix.h +++ b/llvm/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 -- cgit v1.2.3