[clang] [clang] Remove unused lambda capture. (PR #117988)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 28 02:28:18 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Alexandros Lamprineas (labrinea)

<details>
<summary>Changes</summary>

Fixes regression in sanitizer buildbots caused by #<!-- -->116257.

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


1 Files Affected:

- (modified) clang/lib/Basic/Targets/X86.cpp (+1-1) 


``````````diff
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index 38714d0e7d3c51..8c31bbe0567416 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -1365,7 +1365,7 @@ static llvm::X86::ProcessorFeatures getFeature(StringRef Name) {
 }
 
 unsigned X86TargetInfo::getFMVPriority(ArrayRef<StringRef> Features) const {
-  auto getPriority = [this](StringRef Feature) -> unsigned {
+  auto getPriority = [](StringRef Feature) -> unsigned {
     // Valid CPUs have a 'key feature' that compares just better than its key
     // feature.
     using namespace llvm::X86;

``````````

</details>


https://github.com/llvm/llvm-project/pull/117988


More information about the cfe-commits mailing list