[llvm-commits] CVS: llvm/lib/System/Unix/Program.inc
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 12 15:37:30 PDT 2006
Changes in directory llvm/lib/System/Unix:
Program.inc updated: 1.18 -> 1.19
---
Log message:
Turn an if into an else if.
---
Diffs of the changes: (+2 -2)
Program.inc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/System/Unix/Program.inc
diff -u llvm/lib/System/Unix/Program.inc:1.18 llvm/lib/System/Unix/Program.inc:1.19
--- llvm/lib/System/Unix/Program.inc:1.18 Fri Jun 9 15:43:11 2006
+++ llvm/lib/System/Unix/Program.inc Wed Jul 12 17:37:18 2006
@@ -208,12 +208,12 @@
// 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;
More information about the llvm-commits
mailing list