diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-01 20:35:17 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-01 20:35:17 +0000 |
commit | 6c6a70f999aa150ed614edd1e02a1405c717f3f4 (patch) | |
tree | 16b8782356625ca91f5852af3ebf0e5e0082fc81 /llvm/lib/System/Win32/Win32.h | |
parent | 88c268b621ebeac49db1cde9304adf334a787a75 (diff) | |
download | bcm5719-llvm-6c6a70f999aa150ed614edd1e02a1405c717f3f4.tar.gz bcm5719-llvm-6c6a70f999aa150ed614edd1e02a1405c717f3f4.zip |
- Fixed broken Win32 build
- Removed warning about clobbered parameter in Bytecode/Reader
llvm-svn: 30026
Diffstat (limited to 'llvm/lib/System/Win32/Win32.h')
-rw-r--r-- | llvm/lib/System/Win32/Win32.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/System/Win32/Win32.h b/llvm/lib/System/Win32/Win32.h index 0180bfabcf0..74406aec540 100644 --- a/llvm/lib/System/Win32/Win32.h +++ b/llvm/lib/System/Win32/Win32.h @@ -30,11 +30,7 @@ inline bool MakeErrMsg(std::string* ErrMsg, const std::string& prefix) { char *buffer = NULL; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, (LPSTR)&buffer, 1, NULL); - ErrMsg = prefix + buffer; + *ErrMsg = prefix + buffer; LocalFree(buffer); return true; } - -inline void MakeErrnoMsg(std::string* ErrMsg, const std::string & prefix) { - MakeErrorMsg(prefix + ": " + strerror(errno)); -} |