Fix buildbot failures introduced by 293036

Fix unused variable, specify types explicitly to make VC compiler happy.

llvm-svn: 293039
This commit is contained in:
Artur Pilipenko 2017-01-25 09:10:07 +00:00
parent 41c0005aa3
commit bc93452420
1 changed files with 5 additions and 2 deletions

View File

@ -4416,6 +4416,7 @@ const Optional<ByteProvider> 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<unsigned(unsigned, unsigned)> LittleEndianByteAt = [](
unsigned BW, unsigned i) { return i; };
std::function<unsigned(unsigned, unsigned)> BigEndianByteAt = [](
unsigned BW, unsigned i) { return BW - i - 1; };
Optional<BaseIndexOffset> Base;
SDValue Chain;