summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-14 21:42:10 +0000
committerChris Lattner <sabre@nondot.org>2005-02-14 21:42:10 +0000
commit6e528dce9049e46e56039442597f4c099beb5a09 (patch)
tree824d3b8a221936310a1935c0f4a565964ae7c116 /llvm/lib/System/Unix
parent145569b0761a1f902a5c132eb17995979769e348 (diff)
downloadbcm5719-llvm-6e528dce9049e46e56039442597f4c099beb5a09.tar.gz
bcm5719-llvm-6e528dce9049e46e56039442597f4c099beb5a09.zip
Fix a bug in my previous change to this, which broke the build on sparcs.
llvm-svn: 20184
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Unix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Unix.h b/llvm/lib/System/Unix/Unix.h
index 75009d0746e..2f57b68c8eb 100644
--- a/llvm/lib/System/Unix/Unix.h
+++ b/llvm/lib/System/Unix/Unix.h
@@ -77,7 +77,7 @@ inline void ThrowErrno(const std::string& prefix) {
// Copy the thread un-safe result of strerror into
// the buffer as fast as possible to minimize impact
// of collision of strerror in multiple threads.
- if (Errno)
+ if (errno)
strncpy(buffer,strerror(errno),MAXPATHLEN-1);
buffer[MAXPATHLEN-1] = 0;
#else
OpenPOWER on IntegriCloud