[llvm] b5dd2cd - [UpdateTestChecks] Don't skip attributes when comparing functions

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 29 06:38:09 PDT 2020


Author: sstefan1
Date: 2020-08-29T15:37:36+02:00
New Revision: b5dd2cd27f6206a027a1c5b572922a9d4f9891d9

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

LOG: [UpdateTestChecks] Don't skip attributes when comparing functions

Added: 
    

Modified: 
    llvm/utils/UpdateTestChecks/common.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 23c4c1d1fc0c..dd0e132969da 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -232,7 +232,7 @@ def drop_arg_names(match):
         arg_names.add(match.group(3))
         return match.group(1) + match.group(match.lastindex)
     def repl_arg_names(match):
-        if match.group(3) in arg_names:
+        if match.group(3) is not None and match.group(3) in arg_names:
             return match.group(1) + match.group(match.lastindex)
         return match.group(1) + match.group(2) + match.group(match.lastindex)
     if self.attrs != attrs:


        


More information about the llvm-commits mailing list