From b5dd2cd27f6206a027a1c5b572922a9d4f9891d9 Mon Sep 17 00:00:00 2001 From: sstefan1 Date: Sat, 29 Aug 2020 15:35:14 +0200 Subject: [PATCH] [UpdateTestChecks] Don't skip attributes when comparing functions --- llvm/utils/UpdateTestChecks/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index 23c4c1d..dd0e132 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -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: -- 2.7.4