Skip to content

Commit 20e3699

Browse files
[Prototype] Avoid to crash with unclear reason
1 parent 86ac641 commit 20e3699

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Serialization/ModuleSummaryIndexer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ void FunctionSummaryIndexer::indexUseOfType(CanType type) {
112112
Mangle::ASTMangler mangler;
113113
type.visit([&](Type t) {
114114
if (t.getPointer()->hasArchetype() ||
115-
t.getPointer()->hasOpaqueArchetype()) {
115+
t.getPointer()->hasOpaqueArchetype() ||
116+
t.getPointer()->getKind() == TypeKind::SILBlockStorage ||
117+
t.getPointer()->getKind() == TypeKind::SILFunction) {
116118
return;
117119
}
118120
std::string mangled = mangler.mangleTypeWithoutPrefix(t);

0 commit comments

Comments
 (0)