llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Tom Stellard (tstellar)

<details>
<summary>Changes</summary>

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 dd0356d741aefa25ece973d6cc4b55dcb73b84b4.

---
Full diff: https://github.com/llvm/llvm-project/pull/118978.diff


1 Files Affected:

- (modified) clang/utils/perf-training/perf-helper.py (+1-1) 


``````````diff
diff --git a/clang/utils/perf-training/perf-helper.py 
b/clang/utils/perf-training/perf-helper.py
index 3ed42a187fd803..d76c6ede3fe5a2 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -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

``````````

</details>


https://github.com/llvm/llvm-project/pull/118978
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to