[UpdateTestChecks] Don't skip attributes when comparing functions
authorsstefan1 <sstipanovic@s-energize.com>
Sat, 29 Aug 2020 13:35:14 +0000 (15:35 +0200)
committersstefan1 <sstipanovic@s-energize.com>
Sat, 29 Aug 2020 13:37:36 +0000 (15:37 +0200)
llvm/utils/UpdateTestChecks/common.py

index 23c4c1d..dd0e132 100644 (file)
@@ -232,7 +232,7 @@ class function_body(object):
         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: