From: sstefan1 Date: Sat, 29 Aug 2020 13:35:14 +0000 (+0200) Subject: [UpdateTestChecks] Don't skip attributes when comparing functions X-Git-Tag: llvmorg-13-init~13341 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5dd2cd27f6206a027a1c5b572922a9d4f9891d9;p=platform%2Fupstream%2Fllvm.git [UpdateTestChecks] Don't skip attributes when comparing functions --- 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: