From: Artur Pilipenko Date: Wed, 25 Jan 2017 09:10:07 +0000 (+0000) Subject: Fix buildbot failures introduced by 293036 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d10b17e88a58ecf8d4ad120fcb7efaf9f3f5064f;p=llvm Fix buildbot failures introduced by 293036 Fix unused variable, specify types explicitly to make VC compiler happy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293039 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 99423bf443c..75f4a470212 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -4416,6 +4416,7 @@ const Optional calculateByteProvider(SDValue Op, unsigned Index, return None; unsigned ByteWidth = BitWidth / 8; assert(Index < ByteWidth && "invalid index requested"); + (void) ByteWidth; switch (Op.getOpcode()) { case ISD::OR: { @@ -4522,8 +4523,10 @@ SDValue DAGCombiner::MatchLoadCombine(SDNode *N) { if (LegalOperations && !TLI.isOperationLegal(ISD::LOAD, VT)) return SDValue(); - auto LittleEndianByteAt = [](unsigned BW, unsigned i) { return i; }; - auto BigEndianByteAt = [](unsigned BW, unsigned i) { return BW - i - 1; }; + std::function LittleEndianByteAt = []( + unsigned BW, unsigned i) { return i; }; + std::function BigEndianByteAt = []( + unsigned BW, unsigned i) { return BW - i - 1; }; Optional Base; SDValue Chain;