We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53ce1d1 commit 5f9b9fcCopy full SHA for 5f9b9fc
llvm/utils/UpdateTestChecks/common.py
@@ -1907,13 +1907,12 @@ def escape_braces(match_obj):
1907
line,
1908
)
1909
break
1910
- scrubbed_line = (
+ if ignore_all_comments:
1911
# Ignore any comments, since the check lines will too.
1912
- SCRUB_IR_COMMENT_RE.sub(r"", line)
1913
- if ignore_all_comments
+ scrubbed_line = SCRUB_IR_COMMENT_RE.sub(r"", line)
+ else:
1914
# Ignore comments of predecessors only.
1915
- else SCRUB_PRED_COMMENT_RE.sub(r"", line)
1916
- )
+ scrubbed_line = SCRUB_PRED_COMMENT_RE.sub(r"", line)
1917
# Ignore the metadata details if check global is none
1918
if no_meta_details:
1919
scrubbed_line = SCRUB_IR_FUNC_META_RE.sub(r"{{.*}}", scrubbed_line)
0 commit comments