summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorArtur Pilipenko <apilipenko@azulsystems.com>2017-01-25 09:10:07 +0000
committerArtur Pilipenko <apilipenko@azulsystems.com>2017-01-25 09:10:07 +0000
commitbc934524206e8df60b0a05ef3f9b17b180594da4 (patch)
treeacec6c0fecca1c15ebd216cacf8313e7f761bd4b /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent41c0005aa3d3ea26fc1673f0d97810b19042ba2a (diff)
downloadbcm5719-llvm-bc934524206e8df60b0a05ef3f9b17b180594da4.tar.gz
bcm5719-llvm-bc934524206e8df60b0a05ef3f9b17b180594da4.zip
Fix buildbot failures introduced by 293036
Fix unused variable, specify types explicitly to make VC compiler happy. llvm-svn: 293039
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 99423bf443c..75f4a470212 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -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;
OpenPOWER on IntegriCloud