[llvm] 2543020 - [X86] Fix -Wunused-lambda-capture
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 14 10:07:25 PST 2022
Author: Fangrui Song
Date: 2022-01-14T10:07:20-08:00
New Revision: 254302021b0271e4dafd528728d6a6c0bf97d720
URL: https://github.com/llvm/llvm-project/commit/254302021b0271e4dafd528728d6a6c0bf97d720
DIFF: https://github.com/llvm/llvm-project/commit/254302021b0271e4dafd528728d6a6c0bf97d720.diff
LOG: [X86] Fix -Wunused-lambda-capture
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 0b9a72aeb91b..8d543fdda1ce 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -52425,7 +52425,7 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
unsigned NumOps = Ops.size();
switch (Op0.getOpcode()) {
case X86ISD::VBROADCAST: {
- if (!IsSplat && VT == MVT::v4f64 && llvm::all_of(Ops, [Op0](SDValue Op) {
+ if (!IsSplat && VT == MVT::v4f64 && llvm::all_of(Ops, [](SDValue Op) {
return Op.getOperand(0).getValueType().is128BitVector();
}))
return DAG.getNode(X86ISD::MOVDDUP, DL, VT,
More information about the llvm-commits
mailing list