Skip to content

Commit f722671

Browse files
authored
Merge pull request #17500 from huonw/set-optional
[AST] "Simple case" of specialized conditional requirements should be an optional with an empty array.
2 parents f80d113 + d4df4b3 commit f722671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ProtocolConformance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ void SpecializedProtocolConformance::computeConditionalRequirements() const {
861861
auto &ctxt = getProtocol()->getASTContext();
862862
ConditionalRequirements = ctxt.AllocateCopy(newReqs);
863863
} else {
864-
ConditionalRequirements = {};
864+
ConditionalRequirements = ArrayRef<Requirement>();
865865
}
866866
}
867867

0 commit comments

Comments
 (0)