[llvm] r331074 - Attempt to fix build failure after r331071 using std::make_tuple
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 27 13:17:44 PDT 2018
Author: dsanders
Date: Fri Apr 27 13:17:44 2018
New Revision: 331074
URL: http://llvm.org/viewvc/llvm-project?rev=331074&view=rev
Log:
Attempt to fix build failure after r331071 using std::make_tuple
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/LegalityPredicates.cpp?rev=331074&r1=331073&r2=331074&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/LegalityPredicates.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/LegalityPredicates.cpp Fri Apr 27 13:17:44 2018
@@ -46,8 +46,9 @@ LegalityPredicate LegalityPredicates::ty
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();
};
More information about the llvm-commits
mailing list