[llvm-branch-commits] [clang] release/19.x: [Clang][perf-training] Fix clean command in perf-helper.py (#118978) (PR #119051)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 6 18:43:01 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: None (llvmbot)

<details>
<summary>Changes</summary>

Backport 18af3fc1bf8855e1e166e64a9210ed07d610aa54

Requested by: @<!-- -->tstellar

---
Full diff: https://github.com/llvm/llvm-project/pull/119051.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/119051


More information about the llvm-branch-commits mailing list