Skip to content

Commit 526affe

Browse files
[fixup] Make the data layout regex a bit more permissive
1 parent 870aea3 commit 526affe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/UpdateTestChecks/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def invoke_tool(exe, cmd_args, ir, preprocess_cmd=None, verbose=False):
558558
UNUSED_NOTE = "NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:"
559559

560560
DATA_LAYOUT_RE = re.compile(
561-
r"target\sdatalayout\s=\s\"(?P<layout>.+)\"$", flags=(re.M | re.S)
561+
r"target\s+datalayout\s+=\s+\"(?P<layout>.+)\"$", flags=(re.M | re.S)
562562
)
563563

564564
OPT_FUNCTION_RE = re.compile(

0 commit comments

Comments
 (0)