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 | 0228c0fc8d545b4b49b8c1d2dd455af6758612e2 (patch) | |
tree | e90ab22a216b07ba98284d313daea7ba5daa0d99 | |
parent | b2c0650ad363b7e7621cb0e1dffe89316e74166e (diff) | |
download | external_llvm-0228c0fc8d545b4b49b8c1d2dd455af6758612e2.zip external_llvm-0228c0fc8d545b4b49b8c1d2dd455af6758612e2.tar.gz external_llvm-0228c0fc8d545b4b49b8c1d2dd455af6758612e2.tar.bz2 |
Turn an if into an else if.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29129 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/Unix/Program.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 86a5431..1bf1bc9 100644 --- a/lib/System/Unix/Program.inc +++ b/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; |