summaryrefslogtreecommitdiffstats
path: root/clang/utils/modfuzz.py
diff options
context:
space:
mode:
Diffstat (limited to 'clang/utils/modfuzz.py')
-rw-r--r--clang/utils/modfuzz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/utils/modfuzz.py b/clang/utils/modfuzz.py
index 885621d14e4..948603338cc 100644
--- a/clang/utils/modfuzz.py
+++ b/clang/utils/modfuzz.py
@@ -106,7 +106,7 @@ def generate():
try:
while True:
assert m, 'got a failure with no steps; broken clang binary?'
- i = random.choice(range(len(m)))
+ i = random.choice(list(range(len(m))))
x = m[0:i] + m[i+1:]
m2 = CodeModel()
for d in x:
OpenPOWER on IntegriCloud