Skip to content

Commit e844d57

Browse files
authored
Merge pull request #6650 from practicalswift/gardening-20170107
2 parents fc59904 + 4a50e7b commit e844d57

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

lib/SILOptimizer/Mandatory/MandatoryInlining.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ runOnFunctionRecursively(SILFunction *F, FullApplySite AI,
430430
// Finding a valid insertion point is tricky:
431431
// Inlining might add new basic blocks and/or remove the apply
432432
// We want to add the fix up *just before* where the current apply is!
433-
// Unfortunately, we *cant* add the fix up code here:
433+
// Unfortunately, we *can't* add the fix up code here:
434434
// Inlining might fail for any reason -
435-
// If that occurred wed need to undo our fix up code.
435+
// If that occurred we'd need to undo our fix up code.
436436
// Instead, we split the current basic block -
437437
// Making sure we have a basic block that starts with our apply.
438438
SILBuilderWithScope B(I);

utils/swift_build_support/swift_build_support/shell.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def copytree(src, dest, dry_run=None, echo=True):
178178
# Initialized later
179179
lock = None
180180

181+
181182
def run(*args, **kwargs):
182183
repo_path = os.getcwd()
183184
echo_output = kwargs.pop('echo', False)
@@ -187,7 +188,8 @@ def run(*args, **kwargs):
187188
_echo_command(dry_run, *args, env=env)
188189
return(None, 0, args)
189190

190-
my_pipe = subprocess.Popen(*args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
191+
my_pipe = subprocess.Popen(
192+
*args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
191193
(stdout, stderr) = my_pipe.communicate()
192194
ret = my_pipe.wait()
193195

@@ -223,7 +225,8 @@ def init(l):
223225
n_processes = cpu_count() * 2
224226

225227
l = Lock()
226-
print("Running ``%s`` with up to %d processes." % (fn.__name__, n_processes))
228+
print("Running ``%s`` with up to %d processes." %
229+
(fn.__name__, n_processes))
227230
pool = Pool(processes=n_processes, initializer=init, initargs=(l,))
228231
results = pool.map_async(func=fn, iterable=pool_args).get(9999999)
229232
pool.close()

utils/swift_build_support/tests/products/test_swift.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def test_swift_runtime_tsan(self):
9595
build_dir='/path/to/build')
9696
self.assertEqual(set(swift.cmake_options),
9797
set(['-DSWIFT_RUNTIME_USE_SANITIZERS=Thread',
98-
'-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE',
99-
'-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE']))
98+
'-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE',
99+
'-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE']))
100100

101101
def test_swift_compiler_vendor_flags(self):
102102
self.args.compiler_vendor = "none"

validation-test/compiler_crashers_fixed/28559-result-case-not-implemented.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
// See https://swift.org/LICENSE.txt for license information
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

8-
// REQUIRES: OS=linux-gnu
98
// RUN: not %target-swift-frontend %s -emit-ir
109
{{return 0 &+ 1 + 2){}}t

0 commit comments

Comments
 (0)