OSDN Git Service

Fix a referenced before assignment in r193463
authorAlp Toker <alp@nuanti.com>
Sat, 26 Oct 2013 08:46:05 +0000 (08:46 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 26 Oct 2013 08:46:05 +0000 (08:46 +0000)
Some versions of Python on the builders seem strict about this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193464 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/run.py

index 8aaf52f..ed39c40 100644 (file)
@@ -209,6 +209,7 @@ class Run(object):
         """
 
         # Choose the appropriate parallel execution implementation.
+        consumer = None
         if jobs != 1 and use_processes and multiprocessing:
             try:
                 task_impl = multiprocessing.Process