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

Alexandros Lamprineas via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 28 02:27:45 PST 2024


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

Fixes regression in sanitizer buildbots caused by #116257.

>From 27de3fb4c80f909cd58ee4d579665fd6d8fdaf8d Mon Sep 17 00:00:00 2001
From: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
Date: Thu, 28 Nov 2024 10:24:42 +0000
Subject: [PATCH] [clang] Remove unused lambda capture.

Fixes regression in sanitizer buildbots caused by #116257.
---
 clang/lib/Basic/Targets/X86.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the cfe-commits mailing list