Skip to content

Commit

Permalink
[Clang][perf-training] Fix clean command in perf-helper.py (llvm#118978)
Browse files Browse the repository at this point in the history
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.

This bug was introduced by dd0356d.
  • Loading branch information
tstellar authored Dec 7, 2024
1 parent 0d5ae36 commit 18af3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/utils/perf-training/perf-helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def clean(args):
+ "\tRemoves all files with extension from <path>."
)
return 1
for path in args[1:-1]:
for path in args[0:-1]:
for filename in findFilesWithExtension(path, args[-1]):
os.remove(filename)
return 0
Expand Down

0 comments on commit 18af3fc

Please sign in to comment.