1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[lit] Avoid comparisons with None.

llvm-svn: 187919
This commit is contained in:
Daniel Dunbar 2013-08-07 21:43:23 +00:00
parent 3c1d742e14
commit ffb7ba128b

View File

@ -224,7 +224,9 @@ def executeShCmd(cmd, cfg, cwd, results):
results.append((cmd.commands[i], out, err, res))
if cmd.pipe_err:
# Python treats the exit code as a signed char.
if res < 0:
if exitCode is None:
exitCode = res
elif res < 0:
exitCode = min(exitCode, res)
else:
exitCode = max(exitCode, res)