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

via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 17:43:40 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-testing-tools

Author: Eli Friedman (efriedma-quic)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/93116.diff


1 Files Affected:

- (modified) llvm/utils/UpdateTestChecks/common.py (+1-1) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/93116


More information about the llvm-commits mailing list