File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -953,3 +953,9 @@ SourceLoc swift::extractNearestSourceLoc(const SILModule *M) {
953
953
return SourceLoc ();
954
954
return extractNearestSourceLoc (M->getSwiftModule ());
955
955
}
956
+
957
+ bool Lowering::usesObjCAllocator (ClassDecl *theClass) {
958
+ // If the root class was implemented in Objective-C, use Objective-C's
959
+ // allocation methods because they may have been overridden.
960
+ return theClass->getObjectModel () == ReferenceCounting::ObjC;
961
+ }
Original file line number Diff line number Diff line change @@ -611,12 +611,6 @@ void SILGenFunction::emitEnumConstructor(EnumElementDecl *element) {
611
611
}
612
612
}
613
613
614
- bool Lowering::usesObjCAllocator (ClassDecl *theClass) {
615
- // If the root class was implemented in Objective-C, use Objective-C's
616
- // allocation methods because they may have been overridden.
617
- return theClass->getObjectModel () == ReferenceCounting::ObjC;
618
- }
619
-
620
614
void SILGenFunction::emitClassConstructorAllocator (ConstructorDecl *ctor) {
621
615
assert (!ctor->isFactoryInit () && " factories should not be emitted here" );
622
616
You can’t perform that action at this time.
0 commit comments