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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-codegen

Author: Alexandros Lamprineas (labrinea)

<details>
<summary>Changes</summary>

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

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


1 Files Affected:

- (modified) clang/lib/CodeGen/Targets/AArch64.cpp (+1-2) 


``````````diff
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;
   });
 

``````````

</details>


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


More information about the cfe-commits mailing list