mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user