mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Clang importer] Stop creating property/subscript getter/setter thunks.
Instead of synthesizing Swift code for the property and subscript getters and setters we import from Objective-C, just create the declarations and mark them as being Objective-C (foreign) entry points. This means that we'll use the Objective-C entry points (via objc_msgSend). Swift SVN r8692
This commit is contained in:
@@ -949,7 +949,7 @@ static bool isObjCObjectOrBridgedType(Type type) {
|
||||
// [objc] protocols
|
||||
if (auto protoTy = type->getAs<ProtocolType>()) {
|
||||
auto proto = protoTy->getDecl();
|
||||
return proto->requiresClass() && proto->getAttrs().isObjC();
|
||||
return proto->requiresClass() && proto->isObjC();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user