mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -572,10 +572,7 @@ public:
|
||||
}
|
||||
|
||||
// Optionals should have had their objects lowered.
|
||||
OptionalTypeKind optKind;
|
||||
if (auto objectType = rvalueType.getOptionalObjectType(optKind)) {
|
||||
require(optKind == OTK_Optional,
|
||||
"ImplicitlyUnwrappedOptional is not legal in SIL values");
|
||||
if (auto objectType = rvalueType.getOptionalObjectType()) {
|
||||
return checkLegalSILType(F, objectType, I);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user