diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-12 22:37:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-12 22:37:18 +0000 |
commit | 78731ab1b88934e6fa9ff7475fbaf828bc4fbfe5 (patch) | |
tree | dde56de747aba91ce962482fac71564a5334a881 /llvm | |
parent | dd57ac4871f6225e69c8069bfb99a4a95b8c0b0e (diff) | |
download | bcm5719-llvm-78731ab1b88934e6fa9ff7475fbaf828bc4fbfe5.tar.gz bcm5719-llvm-78731ab1b88934e6fa9ff7475fbaf828bc4fbfe5.zip |
Turn an if into an else if.
llvm-svn: 29129
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/System/Unix/Program.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc index 86a54316179..1bf1bc91f81 100644 --- a/llvm/lib/System/Unix/Program.inc +++ b/llvm/lib/System/Unix/Program.inc @@ -208,12 +208,12 @@ Program::ExecuteAndWait(const Path& path, // Return the proper exit status. 0=success, >0 is programs' exit status, // <0 means a signal was returned, -9999999 means the program dumped core. int result = 0; - if (WIFEXITED (status)) + if (WIFEXITED(status)) result = WEXITSTATUS(status); else if (WIFSIGNALED(status)) result = 0 - WTERMSIG(status); #ifdef WCOREDUMP - if (WCOREDUMP(status)) + else if (WCOREDUMP(status)) result |= 0x01000000; #endif return result; |