Skip to content

Commit 5730344

Browse files
committed
IRGen: Fix rebranch build
`getTrailingRequiresClause` has a different result type in `stable/21.x`.
1 parent 5dd12a7 commit 5730344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenStruct.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ namespace {
657657
});
658658

659659
bool hasRequiresClause =
660-
copyConstructor->getTrailingRequiresClause() != nullptr;
660+
!copyConstructor->getTrailingRequiresClause().isNull();
661661

662662
if (hasRequiresClause || hasCopyableIfAttr) {
663663
ctx.Diags.diagnose(copyConstructorLoc, diag::maybe_missing_annotation,

0 commit comments

Comments
 (0)