mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Change Projection to support signed indices.
Change ProjectionIndex for ref_tail_addr to std::numeric_limits<int>::max(); This is necessary to disambiguate the tail elements from ref_element_addr field zero.
This commit is contained in:
@@ -843,7 +843,7 @@ bool COWArrayOpt::hoistMakeMutable(ArraySemanticsCall MakeMutable,
|
||||
return false;
|
||||
}
|
||||
|
||||
SmallVector<unsigned, 4> AccessPath;
|
||||
SmallVector<int, 4> AccessPath;
|
||||
SILValue ArrayContainer =
|
||||
StructUseCollector::getAccessPath(CurrentArrayAddr, AccessPath);
|
||||
bool arrayContainerIsUnique = checkUniqueArrayContainer(ArrayContainer);
|
||||
|
||||
Reference in New Issue
Block a user