Skip to content

Commit 7f0662f

Browse files
authored
Add missing '-' for pass in ExtractIRForPassTest.py (microsoft#5918)
The default generated RUN line generated by ExtractIRForPassTest.py adds the desired pass to the options, but forgot to add the '-', so it would fail with difficult to diagnose error in dxopt during argument parsing. This adds the missing '-' so the RUN line doesn't have to be fixed in this way every time the script is used.
1 parent 6e44415 commit 7f0662f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/hct/ExtractIRForPassTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def main(args):
143143
# 6. Inserts RUN line with -hlsl-passes-resume and desired pass
144144
with open(args.output_file, "wt") as f:
145145
f.write(
146-
"; RUN: %opt %s -hlsl-passes-resume {} -S | FileCheck %s\n\n".format(
146+
"; RUN: %opt %s -hlsl-passes-resume -{} -S | FileCheck %s\n\n".format(
147147
args.desired_pass
148148
)
149149
)

0 commit comments

Comments
 (0)