[llvm] 4a37209 - [update_cc_test_checks.py] Fix invalid python string escape sequence

Alex Richardson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 02:30:02 PDT 2019


Author: Alex Richardson
Date: 2019-10-30T09:28:51Z
New Revision: 4a372093e7c231e369b6fde69031f0feb2c83ecb

URL: https://github.com/llvm/llvm-project/commit/4a372093e7c231e369b6fde69031f0feb2c83ecb
DIFF: https://github.com/llvm/llvm-project/commit/4a372093e7c231e369b6fde69031f0feb2c83ecb.diff

LOG: [update_cc_test_checks.py] Fix invalid python string escape sequence

This works with current python version but will be an error with 3.9

Added: 
    

Modified: 
    llvm/utils/update_cc_test_checks.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/update_cc_test_checks.py b/llvm/utils/update_cc_test_checks.py
index ee8f641c3cab..82959e53b36c 100755
--- a/llvm/utils/update_cc_test_checks.py
+++ b/llvm/utils/update_cc_test_checks.py
@@ -29,7 +29,7 @@
 ADVERT = '// NOTE: Assertions have been autogenerated by '
 
 CHECK_RE = re.compile(r'^\s*//\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')
-RUN_LINE_RE = re.compile('^//\s*RUN:\s*(.*)$')
+RUN_LINE_RE = re.compile(r'^//\s*RUN:\s*(.*)$')
 
 SUBST = {
     '%clang': [],


        


More information about the llvm-commits mailing list