[llvm] d16ba9b - [lit] Use Python's support for None in array slice indexing
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 12:44:17 PDT 2020
Author: Julian Lettner
Date: 2020-03-30T12:44:03-07:00
New Revision: d16ba9b0bd724bfae73ef5c531e724eb46d4ba49
URL: https://github.com/llvm/llvm-project/commit/d16ba9b0bd724bfae73ef5c531e724eb46d4ba49
DIFF: https://github.com/llvm/llvm-project/commit/d16ba9b0bd724bfae73ef5c531e724eb46d4ba49.diff
LOG: [lit] Use Python's support for None in array slice indexing
Added:
Modified:
llvm/utils/lit/lit/main.py
Removed:
################################################################################
diff --git a/llvm/utils/lit/lit/main.py b/llvm/utils/lit/lit/main.py
index c530d3485ffb..d484c4daa5f0 100755
--- a/llvm/utils/lit/lit/main.py
+++ b/llvm/utils/lit/lit/main.py
@@ -85,8 +85,7 @@ def main(builtin_params={}):
'Consider decreasing the number of shards.\n')
sys.exit(0)
- if opts.max_tests:
- filtered_tests = filtered_tests[:opts.max_tests]
+ filtered_tests = filtered_tests[:opts.max_tests]
opts.workers = min(len(filtered_tests), opts.workers)
More information about the llvm-commits
mailing list