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

Alexandros Lamprineas via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 1 02:05:03 PST 2024


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

Fixes the `sanitizer-x86_64-linux-android` buildbot.

>From df67789e087ff560d39b038f7073b3ae90061ff2 Mon Sep 17 00:00:00 2001
From: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
Date: Fri, 1 Mar 2024 09:59:51 +0000
Subject: [PATCH] [clang] Remove unused lambda capture.

Fixes the `sanitizer-x86_64-linux-android` buildbot.
---
 clang/lib/CodeGen/Targets/AArch64.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clang/lib/CodeGen/Targets/AArch64.cpp b/clang/lib/CodeGen/Targets/AArch64.cpp
index 79a9c1d5978a14..725e8a70fddfe6 100644
--- a/clang/lib/CodeGen/Targets/AArch64.cpp
+++ b/clang/lib/CodeGen/Targets/AArch64.cpp
@@ -882,8 +882,7 @@ void AArch64ABIInfo::appendAttributeMangling(StringRef AttrStr,
   for (auto &Feat : Features)
     Feat = Feat.trim();
 
-  const TargetInfo &TI = CGT.getTarget();
-  llvm::sort(Features, [&TI](const StringRef LHS, const StringRef RHS) {
+  llvm::sort(Features, [](const StringRef LHS, const StringRef RHS) {
     return LHS.compare(RHS) < 0;
   });
 



More information about the cfe-commits mailing list