mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SILSerializer] Fix issues in deserializing SILFunction with generic outer parameter.
Before this fix, we can't deserialize any SILFunction with generic outer parameters. We do not have the decl associated with the generic parameter list at SIL level, so instead of using a nullptr decl, we serialize the outer generic parameters directly. rdar://16630493 Swift SVN r16562
This commit is contained in:
@@ -499,7 +499,8 @@ public:
|
||||
/// If the record at the cursor is not a generic param list, returns null
|
||||
/// without moving the cursor.
|
||||
GenericParamList *maybeReadGenericParams(DeclContext *DC,
|
||||
llvm::BitstreamCursor &Cursor);
|
||||
llvm::BitstreamCursor &Cursor,
|
||||
GenericParamList *outerParams = nullptr);
|
||||
|
||||
virtual ArrayRef<Decl *> loadAllMembers(const Decl *D,
|
||||
uint64_t contextData) override;
|
||||
|
||||
Reference in New Issue
Block a user