summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-01-26 20:16:43 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-01-26 20:16:43 +0000
commita03d3198eeacba41ba6c443ea0fdbd30249ab176 (patch)
tree228abe1cf5df1cc1e051a287762c92c7bb3ccd91 /llvm/lib
parent7ad4e31c3ba4af42116a023dbd5c443513ab6b3f (diff)
downloadbcm5719-llvm-a03d3198eeacba41ba6c443ea0fdbd30249ab176.tar.gz
bcm5719-llvm-a03d3198eeacba41ba6c443ea0fdbd30249ab176.zip
[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 llvm-svn: 323557
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 18f14316636..58246c976ce 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -34122,7 +34122,8 @@ static SDValue detectSSatPattern(SDValue In, EVT VT) {
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)
OpenPOWER on IntegriCloud