aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorEli Friedman <efriedma@quicinc.com>2024-05-23 10:35:53 -0700
committerGitHub <noreply@github.com>2024-05-23 10:35:53 -0700
commit779be6fd1d5a7b9b93654abb363c28e7ff51483e (patch)
treeec2f1e6373252b60959e4f5bf9af1f462497fc1c /llvm/utils/UpdateTestChecks/common.py
parentd70cab4663f7893dce7e3be25b122e54a6b8deeb (diff)
downloadllvm-779be6fd1d5a7b9b93654abb363c28e7ff51483e.zip
llvm-779be6fd1d5a7b9b93654abb363c28e7ff51483e.tar.gz
llvm-779be6fd1d5a7b9b93654abb363c28e7ff51483e.tar.bz2
Fix update-test-checks.py on Python 3.6 (#93116)
re.Match apparently doesn't exist in older versions.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 7da16e0..85c1294 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1041,7 +1041,7 @@ class NamelessValue:
var = var.replace("-", "_")
return var.upper()
- def get_affixes_from_match(self, match: re.Match):
+ def get_affixes_from_match(self, match):
prefix = re.match(self.ir_prefix, match.group(2)).group(0)
suffix = re.search(self.ir_suffix + "$", match.group(2)).group(0)
return prefix, suffix