[PATCH] D120041: [AArch64] Fix unused-lambda-capture warning.
Adrian Kuegel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 04:32:34 PST 2022
akuegel created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
akuegel requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120041
Files:
llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
Index: llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
===================================================================
--- llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
+++ llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
@@ -245,7 +245,7 @@
bool AArch64_MC::isQForm(const MCInst &MI, const MCInstrInfo *MCII) {
const auto &FPR128 = AArch64MCRegisterClasses[AArch64::FPR128RegClassID];
- return llvm::any_of(MI, [&FPR128](const MCOperand &Op) {
+ return llvm::any_of(MI, [&](const MCOperand &Op) {
return Op.isReg() && FPR128.contains(Op.getReg());
});
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120041.409589.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/af31b80f/attachment.bin>
More information about the llvm-commits
mailing list