mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pass the indices for writeback-conflict diagnostics on coroutines.
To do this, I had to introduce a way to unsafely copy an argument list for the purposes of diagnostics. rdar:://43802132
This commit is contained in:
@@ -813,3 +813,13 @@ SILType RValue::getLoweredImplodedTupleType(SILGenFunction &SGF) const & {
|
||||
return loweredType.getAddressType();
|
||||
return loweredType.getObjectType();
|
||||
}
|
||||
|
||||
RValue RValue::copyForDiagnostics() const {
|
||||
assert(!isInSpecialState());
|
||||
assert(isComplete());
|
||||
RValue result(type);
|
||||
for (auto value : values)
|
||||
result.values.push_back(value);
|
||||
result.elementsToBeAdded = 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user