Skip to content

Commit 6ed67ca

Browse files
committed
[clang] Remove unused-lambda-capture in AArch64.cpp (NFC)
llvm-project/clang/lib/CodeGen/Targets/AArch64.cpp:886:26: error: lambda capture 'TI' is not used [-Werror,-Wunused-lambda-capture] 886 | llvm::sort(Features, [&TI](const StringRef LHS, const StringRef RHS) { | ~^~ 1 error generated.
1 parent 2a67c28 commit 6ed67ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CodeGen/Targets/AArch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,7 @@ void AArch64ABIInfo::appendAttributeMangling(StringRef AttrStr,
882882
for (auto &Feat : Features)
883883
Feat = Feat.trim();
884884

885-
const TargetInfo &TI = CGT.getTarget();
886-
llvm::sort(Features, [&TI](const StringRef LHS, const StringRef RHS) {
885+
llvm::sort(Features, [](const StringRef LHS, const StringRef RHS) {
887886
return LHS.compare(RHS) < 0;
888887
});
889888

0 commit comments

Comments
 (0)