[llvm] r365613 - Fix const/non-const lambda return type warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 03:45:09 PDT 2019
Author: rksimon
Date: Wed Jul 10 03:45:09 2019
New Revision: 365613
URL: http://llvm.org/viewvc/llvm-project?rev=365613&view=rev
Log:
Fix const/non-const lambda return type warning. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=365613&r1=365612&r2=365613&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Jul 10 03:45:09 2019
@@ -18002,7 +18002,7 @@ static SDValue narrowInsertExtractVector
SDValue Index = Extract->getOperand(1);
EVT VT = Extract->getValueType(0);
- auto GetSubVector = [VT, Index](SDValue V) {
+ auto GetSubVector = [VT, Index](SDValue V) -> SDValue {
if (V.getOpcode() != ISD::INSERT_SUBVECTOR ||
V.getOperand(1).getValueType() != VT || V.getOperand(2) != Index)
return SDValue();
More information about the llvm-commits
mailing list