mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftRemoteMirror: Fix crash emitting capture descriptors involving implicit self
When emitting capture descriptors for functions with a smaller number of parameters than SIL parameters, the compiler can crash indexing into the heap layout's element types, because the capture index underflows to UINT_MAX. rdar://problem/26404583
This commit is contained in:
@@ -629,8 +629,7 @@ public:
|
||||
CanSILFunctionType origCalleeType,
|
||||
CanSILFunctionType substCalleeType,
|
||||
ArrayRef<Substitution> subs,
|
||||
HeapLayout &layout,
|
||||
unsigned firstCaptureIndex);
|
||||
HeapLayout &layout);
|
||||
std::string getBuiltinTypeMetadataSectionName();
|
||||
std::string getFieldTypeMetadataSectionName();
|
||||
std::string getAssociatedTypeMetadataSectionName();
|
||||
|
||||
Reference in New Issue
Block a user