projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2c0650
)
Turn an if into an else if.
author
Chris Lattner
<sabre@nondot.org>
Wed, 12 Jul 2006 22:37:18 +0000
(22:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 12 Jul 2006 22:37:18 +0000
(22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29129
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Program.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Program.inc
b/lib/System/Unix/Program.inc
index 86a54316179ce8411c56f33a310b56a842c7ab63..1bf1bc91f81c32f9996f978bd9704e4cc0bcdef6 100644
(file)
--- 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;