mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Abstraction pattern] Eliminate unnecessary assertion for typed throws
Abstraction patterns can handle conversions involving typed throws nowdays. Remove the assertion, fixing rdar://121617307.
This commit is contained in:
@@ -1270,11 +1270,6 @@ AbstractionPattern::getFunctionThrownErrorType(
|
||||
if (!substErrorType)
|
||||
return llvm::None;
|
||||
|
||||
if (!(*substErrorType)->isEqual(ctx.getErrorExistentialType())) {
|
||||
llvm::errs() << "unsupported reabstraction\n";
|
||||
abort();
|
||||
}
|
||||
|
||||
return std::make_pair(AbstractionPattern(*substErrorType),
|
||||
(*substErrorType)->getCanonicalType());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user