refactor constraints::computeTupleShuffle() to take its first tuple as

an exploded list of elements, which is more convenient for at least one
caller.  NFC.



Swift SVN r31731
This commit is contained in:
Chris Lattner
2015-09-06 22:17:22 +00:00
parent 9ab54bfaf3
commit 21acbd42a0
5 changed files with 84 additions and 85 deletions

View File

@@ -755,7 +755,8 @@ ConstraintSystem::matchTupleTypes(TupleType *tuple1, TupleType *tuple2,
// Compute the element shuffles for conversions.
SmallVector<int, 16> sources;
SmallVector<unsigned, 4> variadicArguments;
if (computeTupleShuffle(tuple1, tuple2, sources, variadicArguments))
if (computeTupleShuffle(tuple1->getElements(), tuple2,
sources, variadicArguments))
return SolutionKind::Error;
// Check each of the elements.