mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Serialization: protect maybeReadGenericParams against errors
Update signature and implementation of `maybeReadGenericParams` to pass up errors to the caller. Also update all of its callers to pass up any error. rdar://126582124
This commit is contained in:
@@ -507,7 +507,7 @@ private:
|
||||
///
|
||||
/// If the record at the cursor is not a generic param list, returns null
|
||||
/// without moving the cursor.
|
||||
GenericParamList *maybeReadGenericParams(DeclContext *DC);
|
||||
llvm::Expected<GenericParamList *> maybeReadGenericParams(DeclContext *DC);
|
||||
|
||||
/// Reads a set of requirements from \c DeclTypeCursor.
|
||||
void deserializeGenericRequirements(ArrayRef<uint64_t> scratch,
|
||||
|
||||
Reference in New Issue
Block a user