Skip to content

Commit 990d93f

Browse files
committed
GSB: Use the correct predicate to determine if a class uses Objective-C reference counting
I'm about to fix the same bug in the RequirementMachine, and to avoid spurious cross-checking failures in -requirement-machine=verify mode, just fix this in the GSB as well.
1 parent 9a8ee60 commit 990d93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4494,7 +4494,7 @@ bool GenericSignatureBuilder::updateSuperclass(
44944494

44954495
auto layout =
44964496
LayoutConstraint::getLayoutConstraint(
4497-
superclass->getClassOrBoundGenericClass()->isObjC()
4497+
superclass->getClassOrBoundGenericClass()->usesObjCObjectModel()
44984498
? LayoutConstraintKind::Class
44994499
: LayoutConstraintKind::NativeClass,
45004500
getASTContext());

0 commit comments

Comments
 (0)