[llvm] 779be6f - Fix update-test-checks.py on Python 3.6 (#93116)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 10:35:58 PDT 2024


Author: Eli Friedman
Date: 2024-05-23T10:35:53-07:00
New Revision: 779be6fd1d5a7b9b93654abb363c28e7ff51483e

URL: https://github.com/llvm/llvm-project/commit/779be6fd1d5a7b9b93654abb363c28e7ff51483e
DIFF: https://github.com/llvm/llvm-project/commit/779be6fd1d5a7b9b93654abb363c28e7ff51483e.diff

LOG: Fix update-test-checks.py on Python 3.6 (#93116)

re.Match apparently doesn't exist in older versions.

Added: 
    

Modified: 
    llvm/utils/UpdateTestChecks/common.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 7da16e0f0cb2e..85c129488d950 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1041,7 +1041,7 @@ def get_value_name(self, var: str, check_prefix: str):
         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


        


More information about the llvm-commits mailing list