1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Fix const/non-const lambda return type warning. NFCI.

llvm-svn: 365613
This commit is contained in:
Simon Pilgrim 2019-07-10 10:45:09 +00:00
parent 630814759f
commit 28c7a0866c

View File

@ -18002,7 +18002,7 @@ static SDValue narrowInsertExtractVectorBinOp(SDNode *Extract,
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();