Skip to content

Commit b44ee77

Browse files
authored
[SILOptimizer] Properly report unexpected protocol requirements in type erasure (swiftlang#61271)
1 parent 334b63e commit b44ee77

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILOptimizer/Utils/Generics.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,8 +2874,7 @@ bool usePrespecialized(
28742874
break;
28752875
} else if (!specializedSig->getRequiredProtocols(genericParam)
28762876
.empty()) {
2877-
// FIXME: how to handle this properly?
2878-
assert(false && "Wat?");
2877+
llvm::report_fatal_error("Unexpected protocol requirements");
28792878
} else if (layout->isNativeClass()) {
28802879
newSubs.push_back(genericParam->getASTContext().TheNativeObjectType);
28812880
score += 1;

0 commit comments

Comments
 (0)