summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2018-04-27 20:17:44 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2018-04-27 20:17:44 +0000
commita05e8d3e68b820465266475928a5bc9e23b2f389 (patch)
tree961a0ba16a73ecd0e440ef74fdb234cc910a9269 /llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
parent60b94c296eaa5c69826755bb82d7b274b9c3faeb (diff)
downloadbcm5719-llvm-a05e8d3e68b820465266475928a5bc9e23b2f389.tar.gz
bcm5719-llvm-a05e8d3e68b820465266475928a5bc9e23b2f389.zip
Attempt to fix build failure after r331071 using std::make_tuple
llvm-svn: 331074
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp b/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
index d9ec88f4345..b43d88fc237 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
@@ -46,8 +46,9 @@ LegalityPredicate LegalityPredicates::typePairAndMemSizeInSet(
std::initializer_list<std::tuple<LLT, LLT, unsigned>> TypesAndMemSizeInit) {
SmallVector<std::tuple<LLT, LLT, unsigned>, 4> TypesAndMemSize = TypesAndMemSizeInit;
return [=](const LegalityQuery &Query) {
- std::tuple<LLT, LLT, unsigned> Match = {
- Query.Types[TypeIdx0], Query.Types[TypeIdx1], Query.MMODescrs[MMOIdx].Size};
+ std::tuple<LLT, LLT, unsigned> Match =
+ std::make_tuple(Query.Types[TypeIdx0], Query.Types[TypeIdx1],
+ Query.MMODescrs[MMOIdx].Size);
return std::find(TypesAndMemSize.begin(), TypesAndMemSize.end(), Match) !=
TypesAndMemSize.end();
};
OpenPOWER on IntegriCloud