Skip to content

Commit 117a920

Browse files
committed
[Clang][perf-training] Fix clean command in perf-helper.py
The first path argument was always being ignored, and since most calls to this command only passed one path, it wasn't actually doing anything in most cases.
1 parent 41c33cb commit 117a920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/perf-training/perf-helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def clean(args):
3636
+ "\tRemoves all files with extension from <path>."
3737
)
3838
return 1
39-
for path in args[1:-1]:
39+
for path in args[0:-1]:
4040
for filename in findFilesWithExtension(path, args[-1]):
4141
os.remove(filename)
4242
return 0

0 commit comments

Comments
 (0)