Turn an if into an else if.

llvm-svn: 29129
This commit is contained in:
Chris Lattner 2006-07-12 22:37:18 +00:00
parent dd57ac4871
commit 78731ab1b8
1 changed files with 2 additions and 2 deletions

View File

@ -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;