Skip to content

Fix four bugs in various Python scripts #540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/cmpcodesize
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def main():
if not oldBuildDir:
sys.exit("$SWIFT_OLD_BUILDDIR not specified")
if not newBuildDir:
die("$SWIFT_NEW_BUILDDIR not specified")
sys.exit("$SWIFT_NEW_BUILDDIR not specified")
oldFileArgs = [ "O", "Ounchecked", "Onone", "dylib" ]
oldFiles = []
newFiles = []
Expand Down
2 changes: 1 addition & 1 deletion utils/pass-pipeline/src/passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
DeadFunctionElimination = Pass('DeadFunctionElimination')
DeadObjectElimination = Pass('DeadObjectElimination')
DefiniteInitialization = Pass('DefiniteInitialization')
Devirtualizer = Pass('SpeculativeDevirtualizer')
SpeculativeDevirtualizer = Pass('SpeculativeDevirtualizer')
DiagnoseUnreachable = Pass('DiagnoseUnreachable')
DiagnosticConstantPropagation = Pass('DiagnosticConstantPropagation')
EarlyInliner = Pass('EarlyInliner')
Expand Down
3 changes: 2 additions & 1 deletion utils/submit-benchmark-results
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Utility script for submitting benchmark results to an LNT server.
"""

import datetime
import errno
import json
import optparse
import subprocess
Expand All @@ -31,7 +32,7 @@ def capture_with_result(args, include_stderr=False):
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=stderr)
except OSError,e:
if e.errno == errno.ENOENT:
fatal('no such file or directory: %r when running %s.' % (
sys.exit('no such file or directory: %r when running %s.' % (
args[0], ' '.join(args)))
raise
out,_ = p.communicate()
Expand Down