1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[UpdateTestChecks] Don't skip attributes when comparing functions

This commit is contained in:
sstefan1 2020-08-29 15:35:14 +02:00
parent 96e421f745
commit 470e74fc55

View 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: