[llvm] r323557 - [X86] Unbreak the build.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 12:16:43 PST 2018
Author: d0k
Date: Fri Jan 26 12:16:43 2018
New Revision: 323557
URL: http://llvm.org/viewvc/llvm-project?rev=323557&view=rev
Log:
[X86] Unbreak the build.
X86ISelLowering.cpp:34130:5: error: return type 'llvm::SDValue' must
match previous return type 'const llvm::SDValue' when lambda expression
has unspecified explicit return type
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=323557&r1=323556&r2=323557&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Jan 26 12:16:43 2018
@@ -34122,7 +34122,8 @@ static SDValue detectSSatPattern(SDValue
unsigned NumSrcBits = In.getScalarValueSizeInBits();
assert(NumSrcBits > NumDstBits && "Unexpected types for truncate operation");
- auto MatchMinMax = [](SDValue V, unsigned Opcode, const APInt &Limit) {
+ auto MatchMinMax = [](SDValue V, unsigned Opcode,
+ const APInt &Limit) -> SDValue {
APInt C;
if (V.getOpcode() == Opcode &&
ISD::isConstantSplatVector(V.getOperand(1).getNode(), C) && C == Limit)
More information about the llvm-commits
mailing list