Skip to content

Commit d4df4b3

Browse files
committed
[AST] "Simple case" of specialized conditional requirements should be an optional with an empty array.
1 parent 55fb2e3 commit d4df4b3

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)