Skip to content

Commit 5747f9d

Browse files
committed
update_test_checks: simplify get_ir_regex
The match argument isn't used.
1 parent fc1e5f9 commit 5747f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/UpdateTestChecks/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def get_ir_prefix_from_ir_value_match(self, match):
947947
return re.search(self.ir_prefix, match[0])[0], self.check_prefix
948948

949949
# Return the IR regexp we use for this kind or IR value, e.g., [\w.-]+? for locals
950-
def get_ir_regex_from_ir_value_re_match(self, match):
950+
def get_ir_regex(self):
951951
# for backwards compatibility we check locals with '.*'
952952
if self.is_local_def_ir_value():
953953
return ".*"
@@ -988,7 +988,7 @@ def get_value_definition(self, var, match):
988988
regex = "" # always capture a number in the default format
989989
capture_start = "[[#"
990990
else:
991-
regex = self.get_ir_regex_from_ir_value_re_match(match)
991+
regex = self.get_ir_regex()
992992
capture_start = "[["
993993
if self.is_local_def_ir_value():
994994
return capture_start + varname + ":" + prefix + regex + "]]"

0 commit comments

Comments
 (0)