Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2018-02-10 17:49:21 -08:00
28 changed files with 176 additions and 381 deletions

View File

@@ -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);
}