aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-09-18 16:15:24 -0400
committerNico Weber <thakis@chromium.org>2020-09-18 16:15:37 -0400
commit7502040ed25e713546e64fe54a30beb5cfd8d045 (patch)
treecb159ae173393b12bbe013af9f0a1c7ff3147e6d /llvm/utils/UpdateTestChecks/common.py
parentd3b0644e22a4ebe599d58d9d319d2403484fd88f (diff)
downloadllvm-7502040ed25e713546e64fe54a30beb5cfd8d045.zip
llvm-7502040ed25e713546e64fe54a30beb5cfd8d045.tar.gz
llvm-7502040ed25e713546e64fe54a30beb5cfd8d045.tar.bz2
clang: Make changes in 7c8bb409f31e py2.7-compatible
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 488425d..74c9238 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -642,7 +642,9 @@ def dump_input_lines(output_lines, test_info, prefix_set, comment_string):
def add_checks_at_end(output_lines, prefix_list, func_order,
comment_string, check_generator):
added = set()
- for prefixes, tool_args, *rest in prefix_list:
+ for prefix in prefix_list:
+ prefixes = prefix[0]
+ tool_args = prefix[1]
for prefix in prefixes:
for func in func_order[prefix]:
if added: