diff options
Diffstat (limited to 'llvm/tools/opt-viewer/optpmap.py')
| -rw-r--r-- | llvm/tools/opt-viewer/optpmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/opt-viewer/optpmap.py b/llvm/tools/opt-viewer/optpmap.py index db6b079b3a6..ff3e683f3d0 100644 --- a/llvm/tools/opt-viewer/optpmap.py +++ b/llvm/tools/opt-viewer/optpmap.py @@ -42,7 +42,7 @@ def pmap(func, iterable, processes, should_print_progress, *args, **kwargs): func_and_args = [(func, arg, should_print_progress,) for arg in iterable] if processes == 1: - result = map(_wrapped_func, func_and_args, *args, **kwargs) + result = list(map(_wrapped_func, func_and_args, *args, **kwargs)) else: pool = multiprocessing.Pool(initializer=_init, initargs=(_current, _total,), |

